NetTalk Central

Author Topic: p_web.CreateMedia and loc:extra don't work  (Read 2650 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
p_web.CreateMedia and loc:extra don't work
« on: February 11, 2023, 04:54:52 AM »
Hi Bruce, the p_web.CreateMedia('loc:st_filename',p_web.gsv('loc:st_filename'),,loc:fieldclass,,loc:extra,loc:javascript)  & p_web.CRLF don't recognize the value of loc:extra

NT 12.50

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: p_web.CreateMedia and loc:extra don't work
« Reply #1 on: February 12, 2023, 11:20:16 PM »
fixed for 12.55

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
Re: p_web.CreateMedia and loc:extra don't work
« Reply #2 on: February 15, 2023, 07:13:08 AM »
same problem with p_web.CreateInput loc:extra don't work

nt 12.55

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
Re: p_web.CreateMedia and loc:extra don't work
« Reply #3 on: February 15, 2023, 07:34:51 AM »
same code in both version

 loc:extra = clip(loc:extra)&' inputmode="none" '

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
Re: p_web.CreateMedia and loc:extra don't work
« Reply #4 on: February 15, 2023, 09:44:38 AM »
i modify this line:
#!loc:extra = p_web.SetEntryWidth(loc:extra,%FormFieldWidth,Net:Form)

for this:
  loc:extra = clip(loc:extra) & p_web.SetEntryWidth(loc:extra,%FormFieldWidth,Net:Form)

netweb.tpw

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: p_web.CreateMedia and loc:extra don't work
« Reply #5 on: February 16, 2023, 01:00:20 AM »
you'll need to be more specific about what line you're editing in what module ?

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
Re: p_web.CreateMedia and loc:extra don't work
« Reply #6 on: February 16, 2023, 03:36:53 AM »
Bruce, in netweb.tpw line 11701 and line 11706

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: p_web.CreateMedia and loc:extra don't work
« Reply #7 on: February 16, 2023, 07:46:31 PM »
alas your fix is incorrect because it needs to merge the loc:extra, not append to it.
Can you give me the context of your code, - where you are seeing loc:extra, and what to?

Better yet tweak one of the examples to show the effect and send that to me.

Cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
Re: p_web.CreateMedia and loc:extra don't work
« Reply #8 on: February 17, 2023, 04:21:03 AM »
in any field 4 Value routine put:

loc:extra = clip(loc:extra)&' input mode="none" '

if you see the attached image in version 12.50 the extra field is added but in 12.55 it doesn't, after changing the code with the line of version 12.50 it works again

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: p_web.CreateMedia and loc:extra don't work
« Reply #9 on: February 17, 2023, 07:34:56 AM »
Hi Osa,
please post an example, perhaps a modified shipping example, that shows the issue.
thanks
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Email
Re: p_web.CreateMedia and loc:extra don't work
« Reply #10 on: February 17, 2023, 08:31:45 AM »
in FieldExpo procedure,entry tab, the field aAutoComplete have this code:

loc:extra = clip(loc:extra)&' inputmode="none" '

and not generate

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: p_web.CreateMedia and loc:extra don't work
« Reply #11 on: September 04, 2023, 02:11:15 AM »
fixed in 14.04