Announcement

Collapse
No announcement yet.

need help for combobox item data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • need help for combobox item data

    how to open url item data with button? .. any action add in the script tab?

  • #2
    Hi dear friend

    you can use below code for this :

    -- get selected item in listbox
    result = ListBox.GetSelected("ListBox1");

    -- in not selected any item in listbox
    if result == nil then
    Dialog.Message("Notice", "please select an item in listbox");
    Application.ExitScript();
    end

    -- get url from listbox data
    data = ListBox.GetItemData("ListBox1", result[1]);

    -- open url
    File.OpenURL(data, SW_SHOWNORMAL);

    Comment


    • #3
      need to get url link in item data
      ex: clic button= open url in item1 data

      Comment


      • #4
        This code what mahdishams posted does that, please get yourself a coffee and read the manual and use all the examples, this will help you understand AMS and not reply like you just did, the user replied with the right reply, but I think the result part is wrong I think it's just result not result[1];
        Plugins or Sources MokoX
        BunnyHop Here

        Comment


        • #5
          if you want, when click on a button, open the url in data item like below :

          Click image for larger version

Name:	1.png
Views:	1
Size:	5.8 KB
ID:	298667

          write this code in "On Click" event of your button :

          -- get url from listbox data
          data = ListBox.GetItemData("ListBox1", 1);

          -- open url
          File.OpenURL(data, SW_SHOWNORMAL);

          Comment


          • #6
            Your first post was already clear mahdishams make them do some of the work them selfs they need to learn how AMS works before askign for any kind of help and the manual/helpfil is the first place the need to start, this is a $200 + software, just like a $200 washer or TV or anything you would read the manual if you don't know what to do at firt before calling the tech support to help this needs to be done first with AMS lol?

            Your help is epic but lets get them to learn :P
            Plugins or Sources MokoX
            BunnyHop Here

            Comment


            • #7
              Hello how are you all.
              Of course i agree whith your position kingzooly, but like a lot of people i begin with this forum and AMS.
              As in school, everybody is different. T
              he manual is very well designed but sometime we need some help to start a project in a good way.
              I realised that the forum was indispensable because AMS opportunities were largely unknown.
              Thanks for the coffee.
              Alain

              Comment


              • #8
                Ahi esta Jeropa
                Attached Files

                Comment


                • #9
                  mahdishams good solid examples there. Also catching a 'nil' selection which would have resulted in an error otherwise.

                  keep up the good work. Brings a bit of life to the graveyard at least.

                  Comment


                  • #10
                    Originally posted by KELLYRUTH View Post
                    Ahi esta Jeropa
                    (y) yes i need this but i want orders for multiple items as in the picture. when on select items get link

                    Comment


                    • #11
                      See this is WHY I said the user needs to learn AMS first they not willing to learn and try they keep coming back for more and more, See they asked for one thing now there saying no that's not what I really wanted this was, and yes mahdishams as provided a 2 good example now and the user has not shown what they have tried do far to try and work out the problem themselves.



                      Originally posted by Alain View Post
                      Hello how are you all.
                      Of course i agree whith your position kingzooly, but like a lot of people i begin with this forum and AMS.
                      As in school, everybody is different. T
                      he manual is very well designed but sometime we need some help to start a project in a good way.
                      I realised that the forum was indispensable because AMS opportunities were largely unknown.
                      Thanks for the coffee.
                      Alain
                      Like I was going to comment no matter what you do you need to read that manual first, as you can see users are now limited on the forum and as you can see the OP as already posted yes I need this and never showed what they already tired and look a really good answer was given to them, but there now asking for the more detailed option, once again not showing what they have tried, this is NOT a give give give forum and just giving wont bring this forum back from the dead.

                      toutaimed PLEASE read the manual, learn how each section works, TRY, if fail, TRY again, if fail TRY again, if fail then come here PROVE your work and what you have already tried and then ask for help, who knows the things you tried might of been almost right and someone can say or you forgot this, then YOU learnt something.

                      I never been a there there user, and never will, I want to see AMS live again and that will only happen when users are willing to try there best with the tool
                      Plugins or Sources MokoX
                      BunnyHop Here

                      Comment


                      • #12
                        Originally posted by kingzooly View Post
                        See this is WHY I said the user needs to learn AMS first they not willing to learn and try they keep coming back for more and more, See they asked for one thing now there saying no that's not what I really wanted this was, and yes mahdishams as provided a 2 good example now and the user has not shown what they have tried do far to try and work out the problem themselves.





                        Like I was going to comment no matter what you do you need to read that manual first, as you can see users are now limited on the forum and as you can see the OP as already posted yes I need this and never showed what they already tired and look a really good answer was given to them, but there now asking for the more detailed option, once again not showing what they have tried, this is NOT a give give give forum and just giving wont bring this forum back from the dead.

                        toutaimed PLEASE read the manual, learn how each section works, TRY, if fail, TRY again, if fail TRY again, if fail then come here PROVE your work and what you have already tried and then ask for help, who knows the things you tried might of been almost right and someone can say or you forgot this, then YOU learnt something.

                        I never been a there there user, and never will, I want to see AMS live again and that will only happen when users are willing to try there best with the tool
                        Dear Sir @kingzooly, I do not know the language, and even if I read the manual, I can not understand everything. I know a lot about the program and I have a project that I will present later to prove it but this is a good process for me and I agree with you that I did not put what I want in detail. I try again, please understand why all this fanaticism once again bemoaned the bad language

                        Comment


                        • #13

                          Comment


                          • #14
                            See to make sure I'm trying to learn this training course for the program but in Arabic please understand this

                            Comment


                            • #15
                              Your asking things what are covered in the manual how to get the data from a list-box is in the manual, the manual shows examples on how to use different parts of the code, I not going to accept I can't do it because I can't understand what you really mean is I can't be bothered having it translated so I just going to ask here, but guess what, most of us here post in ENGLISH and many users here are not English, so if you can understand here you can understand the manual, if it's because your using a tool in the bower to translate then try

                              Use firefox https://www.indigorose.com/webhelp/ams/ and then use a language translator in firefox this will help you read it in Arabic best the translator can offer
                              Plugins or Sources MokoX
                              BunnyHop Here

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎