NetTalk Central

Author Topic: Prefill Memory Form fields  (Read 2868 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Prefill Memory Form fields
« on: March 09, 2012, 01:38:41 AM »
This has to be straight forward but cannot seem to make it work.

On a MEMORY form I have various fields. I have session variables primed and want to prime the fileds with these variables.

i.e. loc:from = p_web.GSV('Email_From') where loc:from is the field on the form.

The session variable has the value but I cannot find the embed point to set loc:from to display this to the user. All my attempts are showing a blank entry field.

How can I present the form first time with all the relevant fields primed?

Many thanks

John

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Prefill Memory Form fields
« Reply #1 on: March 09, 2012, 03:00:45 AM »
preupdate

loc:from = p_web.GSV('Email_From')

you may need to do this as well

p_web.ssv('loc:from',loc:from)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Prefill Memory Form fields
« Reply #2 on: March 09, 2012, 03:41:57 AM »
Thank you Kevin. Works just great!

I wonder if you can answer a related question please ...

Attached is a standard browse and you will see the EMail button. This works fine but there is an issue with focus.

When I open the browse the top record is not highlighted fully. So I have to click in the line to actually make it the focus. That is one general issue with browses I have.

The other is that under the email button I have some code which calls the email form. No problem there. The code passes the invoice information to the email form.

The thing is I am using the Inv:GUID and the only way I seem to be able to retrieve that is in the "User clicked on the row embed".

Now when they click on the email button, the first time it does not fire the User Clicked code. I guess therefore my general question would be:

1. How do you force the borwse to set the focus on the first record of the browse
2. How do you get the Invoice record ID or whatever when you click on the email button bearing in mind that the focus does not appear to be on the invoice line at the time.

Just to clarify, there are 2 separate issues really. So issue #2 can happen with ANY record. How to get the record ID when they click on that button.

I hope that makes sense.

Thanks

John

[attachment deleted by admin]