HMI Pad Forums Old forum Support (old) Picker use tag and lookup

This topic contains 3 replies, has 2 voices, and was last updated by  bonka 6 years, 7 months ago. This post has been viewed 1220 times

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19870

    bonka
    Member

      Hello,

      I would like to use a picker to do two things at once when I choose my lookup in my list.

      bReadStyle,INT,INTERNAL,”write_access=9; page=”"Belysning”"; section=”"Val av Kanal”"; label=”"”"; style=picker; bounds={0,5};”

      style1,LOOKUP,0,”Kanal 1″
      style1,LOOKUP,1,”Kanal 2″
      style1,LOOKUP,2,”Kanal 3″
      style1,LOOKUP,3,”Kanal 4″

      When I eg select “kanal 1″, I want my tag will be True (Bool;w3.00). is it possible?

      Belysning;Bool;w3.00;”hidden=!(bReadStyle==0); Page=”"Belysning”"; section:=”"Belysning vardags rum”"; label=”"”"; comment=”"”"; type = “viewer”; on_label=”"Kanal 1 Aktiverad”"; off_label=”"Kanal 1 Avstängd”";”

      Best regards
      Billy

      #19871

      John
      Keymaster

        Hello,

        You can use the ‘value’ attribute on your Belysning row to check for the bReadStyle in a similar way you do with the ‘hidden’ attribute. In your case you can write:

        Belysning;Bool;w3.00;”hidden=!(bReadStyle==0); value=!(bReadStyle==0);

        With this you will have the row hidden and with true value when you chose “Kanal 1″ on the picker.

        John.

        #19872

        bonka
        Member

          It works very well now.

          but in the value i have to type in a ! insted off == to get my point go on and off when i use the picker.
          value=!(bReadStyle!=0);

          Thanks for your help and fast response.
          I really like Scada Mobile a nice software that works flawlessly.

          Best Regards
          Billy

          #19873

          John
          Keymaster

            Ah, ok. I got it reversed. Then you can omit both ! and just type
            value = (bReadStyle==0);

            This is indeed what will return true for “Kanal 1″

            Anyway, thanks for your feedback.

            John

          Viewing 4 posts - 1 through 4 (of 4 total)

          You must be logged in to reply to this topic.

          Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
          Science and Technology Park of the University of Girona, Emili Grahit, 91 (Narcís Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244