Design Studio Inbasket

 5 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
George Graham
Veteran Member
Posts: 201
Veteran Member
    OK - I think I probably just need another set of eyes. Probably one of those things I've been looking at too long and am looking right past it. Trying to provide an inbasket to PA13.3. Trying to pass in company, employee and as of date into the form. I get the form to display in the inbasket - but its not populating the fields. 

    I have the following script in my portal page:

    function testinb_OnInit()
    {
    pStorage = new PortalStorage();
    pStorage.addElement("PEP-EMPLOYEE",page.parameters.PEP_EMPLOYEE);
    pStorage.addElement("PEP-COMPANY",page.parameters.PEP_COMPANY);
    pStorage.addElement("AS-OF-DATE",page.parameters.AS_OF_DATE);
    page.setObjectValues("testinb",pStorage)
    }


    I've stopped with alerts and validated that I do see the values in the page parameters correctly. So it appears that it is not updating the elements on the formlet correctly. I do have these values in the data map on the portal page as well.

    No errors are being kicked out and the function completes.

    Thoughts?
    Ragu Raghavan
    Veteran Member
    Posts: 476
    Veteran Member
      In the screens that I developed, I used

      function portalpage_OnInit.

      maybe your testinb_OnInit() needs to be replaced by portalpage_OnInit


      George Graham
      Veteran Member
      Posts: 201
      Veteran Member
        I actually did that as well - but that's not it since I know its executing the function if I put an alert in there....
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          When you added your elements on the data map, did you name them exactly the same as you did when you built them with your script?
          David Williams
          Sam Simpson
          Veteran Member
          Posts: 239
          Veteran Member
            George,
            Your portal page looks good but you need to set the element values in the form.

            Example: function FORM_OnInit()
            {
            lawForm.setElementValue("_f3",pageObj.parameters["REQUESTER"]);
            lawForm.setElementValue("_f5",pageObj.parameters["REQ_NUMBER"]);
            }

            This my own version of requisition approvals.

            George Graham
            Veteran Member
            Posts: 201
            Veteran Member
              Sam - that was it! Late nights do that to you every time! Thanks!!