NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on February 11, 2023, 04:54:52 AM

Title: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro 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
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: Bruce on February 12, 2023, 11:20:16 PM
fixed for 12.55
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro on February 15, 2023, 07:13:08 AM
same problem with p_web.CreateInput loc:extra don't work

nt 12.55
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro on February 15, 2023, 07:34:51 AM
same code in both version

 loc:extra = clip(loc:extra)&' inputmode="none" '
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro 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
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: Bruce on February 16, 2023, 01:00:20 AM
you'll need to be more specific about what line you're editing in what module ?
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro on February 16, 2023, 03:36:53 AM
Bruce, in netweb.tpw line 11701 and line 11706
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: Bruce 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
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro 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
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: Bruce 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
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: osquiabro 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
Title: Re: p_web.CreateMedia and loc:extra don't work
Post by: Bruce on September 04, 2023, 02:11:15 AM
fixed in 14.04