Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6321 Widget form skip-start umbrella issue
  3. OFBIZ-6429

For lookup fields in sub forms (skip-start + skip-end), the value of the form-name attribute should be dynamically rendered

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Trunk, Upcoming Branch
    • None
    • framework

    Description

      The solution in OFBIZ-6139 means hard-codedness of the value of the form-name attribute of a field.
      As shown in following example:

      <form name="RequestItemProduct" type="single" skip-start="true" skip-end="true">
              <field name="productId" title="${uiLabelMap.CommonProduct}" form-name="EditCustRequestItem">
              <lookup target-form-name="LookupProduct" description-field-name="productName" show-description="false"/>
              </field>
              <field name="productName" form-name="EditCustRequestItem" position="2"><text read-only="true"/></field>
              <field name="quantity" title="${uiLabelMap.CommonQuantity}"><text size="10"/></field>
      </form>
      

      However when the start form changes based on conditions in the screen (parameters, etc), the lookup field won't work due to this hard-codedness.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pierresmits Pierre Smits

            Dates

              Created:
              Updated:

              Slack

                Issue deployment