Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18031

Document optional fields that are on by default for ESDL

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.0
    • Component/s: Documentation
    • Labels:
      None

      Description

      Normally when a field has an "optional" attribute, the field will be visible only when the option appears on the URL. But when the option starts with '!', then the field will become invisible if the option (without the !) appears in the URL, and will be visible only when the option doesn't exist. For example:

      ESPrequest RoxieEchoPersonInfoRequest
      {
           ESPstruct NameInfo Name;
           [optional("internal")] string NickName;
           [optional("!_UK_")] string SSN;
           ESParray<ESPstruct AddressInfo, Address> Addresses;
      };
      

      When the url is http://localhost:8003/
      SSN will be visible, but NickName will be invisible.
      When the URL is http://localhost:8003/?internal
      SSN and NickName will be both visible
      For http://localhost:8003/?internal&_UK_
      only NickName will be visible, and SSN will be hidden.
      http://localhost:8003/?_UK_
      will make both invisible

        Attachments

          Activity

            People

            • Assignee:
              jamesdefabia Jim DeFabia
              Reporter:
              mayx Yanrui Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: