Announcement

Collapse
No announcement yet.

Passing parameters problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Passing parameters problem

    I have a form where I enter my email address and a random question. I pass these as [glob_something] to the next application. In the next application I have set the header to this variable like it is done in the sample video. This works. Now I want this value initially inserted in the form to let the user add some info. I have it configured as a popup. I tried several things:

    first: add an assignment on the onscriptinit event like:

    {email} = [glob_email];

    this didn't work. I wanted to be sure that the value was present but I get only errors:

    sc_alert([glob_email]); does NOT work
    sc_alert('[glob_email]') displays '$this->sc_temp_glob_email' or something like that

    Then I tried on application init, it does not work

    Finally I added the following on the initial value of the field

    initial value type -> 'defined value'
    initial value -> [glob_email]

    This does not work. Entering [glob_email] into the header DOES work.

    Now how do I get the initial value into my form field?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

  • #2
    Re: Passing parameters problem

    Hi,
    you have to assign the value in the onLoad event, hence the onScriptInit and onApplicationInit are executed before the actual SQL-select so there is no variable there yet.

    jsb

    Comment


    • #3
      Re: Passing parameters problem

      Nope, it's not an sql matter. I dont get the variables in sight. If i set a sc_alert('[glob_myvar]')' then I get (same as on the other events) $this->sc_temp_glob_email as a display and not it's value.

      The idea is that the thing you enter on the initials form is replicated on the enhanced form and then enrichted by the user. But assinging a default value for the multiline fields does not work.
      albert
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        Re: Passing parameters problem: solved

        Desperate I thow away the module and regenerated from scratch. Now it works (....). Well at least it's a big relieve. Tnx for thinking with me.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment

        Working...
        X