Topic
3 replies Latest Post - ‏2013-10-10T14:13:48Z by sudhakarkethi
goku99
goku99
2 Posts
ACCEPTED ANSWER

Pinned topic extract action and variables

‏2013-10-05T04:26:12Z |

Hi,

On a screen, I want to extract a selection by the lines x to y, and for each line, this selection is stored in a string variable. So I want to test if this variable is null or not, to determine what type of action to be followed. However, even when there is no visible string, the null condition is not satisfied. Anyone have any tips for this case?

 

Thanks!

  • sudhakarkethi
    sudhakarkethi
    7 Posts
    ACCEPTED ANSWER

    Re: extract action and variables

    ‏2013-10-07T18:36:31Z  in response to goku99

    Try the following link it is pretty straight forward to do so

     

    http://pic.dhe.ibm.com/infocenter/hatshelp/v80/index.jsp?topic=%2Fcom.ibm.hats.doc%2Fdoc%2Fuggblvar.htm

  • goku99
    goku99
    2 Posts
    ACCEPTED ANSWER

    Re: extract action and variables

    ‏2013-10-08T03:22:58Z  in response to goku99

    Hi, Thanks!

     

    I am afraid that I don't have a HATS editor...but the HATS elements are wrapped in the <macro> tags...

    Anyway, in HATS, I should create the same extract, but what's the tag to create the same Var? Sorry to ask cause I couldn't locate in the documentation...

    • sudhakarkethi
      sudhakarkethi
      7 Posts
      ACCEPTED ANSWER

      Re: extract action and variables

      ‏2013-10-10T14:13:48Z  in response to goku99

      right click the macro (i.e HMA a file and open in the macro editor ) you will find the editor mode, from there you can create the variable and what ever you want.

      to create variables following are the different tags.

       

      <vars>
         <create name="$strAccountName$" type="string" value="" />
         <create name="$intAmount$" type="integer" value="0" />
         <create name="$dblDistance$" type="double" value="0.0" />
         <create name="$boolSignedUp$" type="boolean" value="false" />
         <create name="$fldFunction$" type="field" />
      </vars>