Identifying correct setup for inbasket link to form fields

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
ArthurThum
Advanced Member
Posts: 25
Advanced Member
    Have an inbasket form PO20.1 Need a little assistance in identifying the correct field setup to get it to prepopulate the form when the link is selected. Have the link working correctly but form comes up without the PO displayed. Have keys defined in trigger but I think the form variable def is wrong. Need to know what the field NBR means and where that value is determined and which one the form uses.
    Anyone knows?
    Robert Spurr
    Veteran Member
    Posts: 130
    Veteran Member
      Assuming you built/modified a special PO20 screen and wrapped it in a portal page this should get you started:

      1) Data Map - Company, PO Number, PO Release, PO Code (Min required fields to inquire on PO20)

      2) Add the following code to the portal page (Changes to the names based on your naming convention will need to be made first)

      function portalpage_OnInit()
      {
      page.addElement("PCR-COMPANY",page.parameters.PCR_COMPANY);
      page.addElement("PCR-PO-NUMBER",page.parameters.PCR_PO_NUMBER);
      page.addElement("PCR-PO-RELEASE",page.parameters.PCR_PO_RELEASE);
      page.addElement("PCR-PO-CODE",page.parameters.PCR_PO_CODE);
      return true;
      }
      ArthurThum
      Advanced Member
      Posts: 25
      Advanced Member
        Thanks Robert. I appreciate the response, but that isn't my issue.
        The problem I am having is just getting form PO20.1 to work as delivered.
        I have defined the the PO20.1 form with 4 key fields.
        The 4GL trigger code fills in the four values.
        The folder records gets generated and the values are set in a key string.
        The string looks ok to me.
        Company, PO_NUMBER, PO_RELEASE and PO_CODE
        but when I click the link, when the PO20 comes up in the folder section of the workunit, the values are not filled in. I want the PO to come up.
        The fields are blank when the folder link is clicked. I do not know the correct values for FIELD NBR on the Folder Variables form definition. Everything else looks ok to me