NetTalk Central

Author Topic: NT8 add links to a popup form  (Read 2409 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT8 add links to a popup form
« on: April 05, 2014, 08:10:35 AM »
Hi, I used to add some links after the subheading of my forms.
Help, Audit and Print (see image 1)

I have a template to do that.
I´ve tried to add those links in a popoup form and its impossible, I´ve tried sevral embeds and the form pops up empty.
Then I tryed to modify the header and ... image 2

How can I add some links to the top of a popup form?

The code I'm adding to the packet is:

!help link
packet.append('<a href="javascript:var win=open('''&'./help/html/uExamsOf_'&P_WEB.GSV('LOGIN_LNG')&'.html'&''',''DwsHelpPage'',''width=900,height=500,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizeable=yes'');" alt="'&p_web.Translate('Click here for help')&'" class="link_gris">'&p_web.Translate('Help')&'</a>&nbsp;&nbsp;')

!Audit link 
packet.append('<a href="./bLogEvents?Admin=0&TableName=CR_EXA&RecordNr='&P_WEB.GSV('CEX:ID')&'&RecordName='&P_WEB.GSV('EXA:NAME')&'" target="PopupWindow" alt="'&p_web.Translate('Click here for Audit')&'" class="link_gris">'&p_web.Translate('Audit')&'</a>&nbsp;&nbsp;')

!Print link
packet.append('<a href="javascript:print()" alt="'&p_web.Translate('Click here to print page')&'" class="link_gris">'&p_web.Translate('Print')&'</a>')

Thanks
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT8 add links to a popup form
« Reply #1 on: April 07, 2014, 01:10:21 AM »
This is an example of using embed code where using a template setting is better.
The right way to add links to a form is to use the "Display" Form field type.

cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT8 add links to a popup form
« Reply #2 on: April 07, 2014, 04:17:35 AM »
Ok, I´m trying but cant do a link like:

'<a href="javascript:var win=open('''&'./help/html/uExamsOf_'&P_WEB.GSV('LOGIN_LNGHLP')&'.html'&''',''DwsHelpPage'',''width=900,height=500,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizeable=yes'');" alt="'&p_web.Translate('Click here for help')&'" class="link_gris">'&p_web.Translate('Help')&'</a>'

using javascript:var win=open and its parameters I can open the page as a little window over the actual explorer window

If I put that code in URL it does not work.

How can I do it?

-----------
Regards
Alberto