NetTalk Central

Author Topic: Popup title  (Read 6430 times)

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Popup title
« on: November 22, 2010, 05:06:06 AM »
Anyone knows where to set the Popup header?

Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Popup title
« Reply #1 on: November 22, 2010, 11:03:28 PM »
well of course it's really obvious - so obvious I had to hunt for 10 minutes to figure it out <g>.

see attached pic.

[attachment deleted by admin]

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #2 on: December 01, 2010, 02:58:41 AM »
OK, this is for the custom buttons, but where to set the form dialog text for the default buttons beneath the browse?
Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Popup title
« Reply #3 on: December 01, 2010, 03:43:21 AM »
um, no, not custom buttons, standard buttons.
And the "in row" buttons (SmallChange etc) are there, as well as the ones below the browse, like Insert.

Perhaps you only changed some of the buttons?

cheers
Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #4 on: December 01, 2010, 04:44:13 AM »
Bruce,

I mean when I enable buttons like Insert, etc on the Form tab of a browse that show up beneath the browse and open the form as a popup. This says Insert as popup header.
Where to set these texts?

Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Popup title
« Reply #5 on: December 01, 2010, 09:43:35 PM »
See the second half of the pic in my first reply.

cheers
Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #6 on: December 13, 2010, 06:53:30 AM »
Bruce,

Is there a way to customize this text? When I change the global Edit button and tell the form header text to be 'Edit Person' (or something), I would like the text to be 'Edit person Bruce Johnson'.

Where is this text set to change that embed point? Is there an embed point for this?
Greetz,
Sjoerd

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Popup title
« Reply #7 on: December 13, 2010, 12:54:59 PM »
Hoi Sjoerd,

Just put  _ p_web.gsv('Voornaam') & p_web.gsv('achternaam') _ in the Form heading of the popup form.
The referenced fields must be in the browse or just 'hot'.

Groetjes,
Rene

Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Popup title
« Reply #8 on: December 13, 2010, 09:07:50 PM »
Hi Sjoerd,

It is also a property of the button - so you can change it for a specific procedure (the browse) using the techniques I taught you in Holland <g>...

Check the back of the book for a list of the button properties, and if you want a different title for each row in the browse then set the property in the browse loop.

cheers
Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #9 on: December 14, 2010, 04:34:51 AM »
How obvious things can be.... Thanks guys!
Greetz,
Sjoerd

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #10 on: January 31, 2011, 06:00:00 AM »
I understand the popupheader property, but now I think there is a limitation.

I would like the header to be changed whenever I select another row in the browse.
Basically I would like to to something like this in the CallClicked EMBED:

Code: [Select]
p_web.SSV('svMedewerkerNaamSelected',SQLCmd('SELECT Naam FROM Medewerker WHERE Id=' & p_web.GSV('Med:Id')))
p_web.site.InsertButton.PopupHeader = 'Nieuwe Medewerker'
p_web.site.CopyButton.PopupHeader = 'Nieuwe Medewerker (Kopie [' & p_web.GSV('svMedewerkerNaamSelected') & '])'
p_web.site.ChangeButton.PopupHeader = 'Wijzigen Medewerker [' & p_web.GSV('svMedewerkerNaamSelected') & ']'
p_web.site.ViewButton.PopupHeader = 'Medewerker [' & p_web.GSV('svMedewerkerNaamSelected') & ']'

Is this possible?
Greetz,
Sjoerd

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #11 on: January 31, 2011, 10:54:14 AM »
Just tried to test this in example 3.

I entered this inside the BrowseRow, Set Queue Record EMBED:

Code: [Select]
p_web.site.ViewButton.PopupHeader = 'TEST' & MAI:MailBoxName
p_web._Trace('p_web.site.ViewButton.PopupHeader =' & p_web.site.ViewButton.PopupHeader )

The result in DebugView is in Capture1.PNG
The result on the screen (in the popupheader) is just a simpel space.
See Capture2.PNG

[attachment deleted by admin]
Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Popup title
« Reply #12 on: February 01, 2011, 02:05:12 AM »
Hi Sjoerd,

You remind me the guy who comes 4th in the Olympics.
You were soooo close....

Try setting
p_web.site.SmallViewButton.PopupHeader
not
p_web.site.ViewButton.PopupHeader

Cheers
Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Popup title
« Reply #13 on: February 01, 2011, 03:11:02 AM »
crap.... ::)


Thanks! 
Greetz,
Sjoerd