NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanco123 on June 20, 2013, 10:13:23 PM

Title: How to justify Prompt to Left in code?
Post by: johanco123 on June 20, 2013, 10:13:23 PM
Hi Bruce

I need to change some prompt descriptions in code. I use the "2 Prompt Routine Start" embed point with the following code:

      packet = clip(packet) & p_web.DivHeader('WUpdPDetailsExtra_' & p_web._nocolon('OptionON') & '_prompt',loc:fieldClass,Net:NoSend)
      loc:prompt = Choose(1=0,'',p_web.Translate('Unit Premium:'))
      packet = clip(packet) & p_web.DivFooter(Net:NoSend)

This is working fine but the prompt is now right-justified. How can I get it left-justified in the above code?

Regards
Johan
Title: Re: How to justify Prompt to Left in code?
Post by: kevin plummer on June 20, 2013, 11:06:43 PM
johan I just make my prompt a session variable (not text) and then change the session variable in code.
Title: Re: How to justify Prompt to Left in code?
Post by: johanco123 on June 20, 2013, 11:21:30 PM
Tanks Kevin I will try the session Variables

I found the solution in the above code by adding 'nt-left' before loc:fieldClass:

packet = clip(packet) & p_web.DivHeader('WUpdPDetailsExtra_' & p_web._nocolon('OptionON') & '_prompt','nt-left',loc:fieldClass,Net:NoSend)