Announcement

Collapse
No announcement yet.

ComboBox.InsertItem

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

  • jassing
    replied
    Originally posted by Intrigued View Post
    Odd, previous applications that I have created that use this Object, never came up in a support call, e-mail for any one of my products. It must only happen then, for those that see it, on a very few machines and under specific conditions.

    This may be why there has not been an update. Perhaps I.R. has not even been able to duplicate this as well.
    Very limited in my conditions; it's jsut happened here in my test lab and a few customers (one refused to pay becuase of it; which is what prompted me to file a support incident) -- I guess IR replicated; and logged it.

    I agree it's a minor issue all in all; so it doesn't suprise me it hasn't been fixed - my comment was to just let all know it does happen across products; and he's not alone.

    Leave a comment:


  • Intrigued
    replied
    Odd, previous applications that I have created that use this Object, never came up in a support call, e-mail for any one of my products. It must only happen then, for those that see it, on a very few machines and under specific conditions.

    This may be why there has not been an update. Perhaps I.R. has not even been able to duplicate this as well.

    Leave a comment:


  • jassing
    replied
    Originally posted by azmanar View Post
    Hi Jassing,

    I hope the issue you faced will be resolved soon.
    Ditto; but since I do only suf7 coding for a living; I'm not holding my breath -- An update for that hasn't been out in a long time.. I only got on the AMS board becuase I saw an interesting question to fix -- I only have the eval; so once that's over; I won't be here...

    Cheers
    -josh

    Leave a comment:


  • azmanar
    replied
    Hi Jassing,

    I hope the issue you faced will be resolved soon.

    Leave a comment:


  • jassing
    replied
    Originally posted by azmanar View Post
    I suggest you open a ticket with IR.
    I did, last year -- I don't see a point in opening another for AMS -- it was confirmed at the time as well.

    Leave a comment:


  • azmanar
    replied
    Hi Jassing,

    Have you tried the example? Theres not much coding in it. At my end, the ComboBox settings are functioning. Intrigue has no problem too.

    I suggest you open a ticket with IR.

    Leave a comment:


  • jassing
    replied
    Originally posted by azmanar View Post
    Hi David and Jassing,

    I have created an example that proves AMS ComboBox number of display lines can be set by default at design time.
    "proves" is hardly appropriate here. Both David & I have seen it where the setting has ignored. You can choose to hang out in the "it works for me so it's not broken" camp or you can open up a bit and think "Gosh if two people are experiencing the same behaviour; maybe ther is a problem....

    I'm not about to provide you with a flash movie of it failing to work for me; as you would just accuss me of altering the code....

    -j

    Leave a comment:


  • azmanar
    replied
    Hi David and Jassing,

    I have created an example that proves AMS ComboBox number of display lines can be set by default at design time. It can also be controlled by your app users using radioboxes or etc.

    In this example, by default the ComboBox will display 3 Dropdown items. Then users can choose either 5 or 10 display option. The changes can be seen live at runtime by using ComboBox.SetProperties() function.

    OnShow will populate the ComboBox with Live Search Engines from a hardcoded table. After selecting one item, OnClick button will open a default browser.

    I have not been able to upload files to this forum. So the example is in my server : www.azman.info/ams/DropDownControl.apz

    Leave a comment:


  • jassing
    replied
    Originally posted by Intrigued View Post
    I am unable to duplicate the bug you see based on that.
    I've had that issue on various OS's with SUF7 (just now on AMS) TrueUpdate & VisualPatch... So there is something "different" between installations (os; setups, etc) that make it not so easy to diagnose.

    Maybe if IR could allow regular old ActiveX's to be used; we coulse objects of a different kind... but that would introduce a whole new problem for running on target systems...

    Leave a comment:


  • Intrigued
    replied
    Originally posted by David REMD View Post
    Intrigued,

    My issue is not in populating the ComboBox with my data, it is with the number of items that display in the dropdown list. I want to limit the number to 6.

    Here is the code that populates the list:
    Code:
    myvalues = {Name1="$Name1"};
    	result = HTTP.Submit(http://www.MyDomain.com/mylist.php, myvalues, SUBMITWEB_GET, 20, 80, nil, nil);
    	myvalues = {Url1="$Url1"};
    	result1 = HTTP.Submit(http://www.MyDomain.com/mylist.php, myvalues, SUBMITWEB_GET, 20, 80, nil, nil);
    	-- Insert a new item into the combobox at index.
    	ComboBox.InsertItem("ComboBox9", 2, result, result1);
    I have the ComboBox Properties Settings set to 6. It does not stop at 6. It populates all 21 items in the list and runs off the page.
    I understand. I used that code to populate the ComboBox with random data for the test. I also set the Lines to display in the dropdown to six (6). I then Preview'ed (F5) the application and the ComboBox worked properly for me. I am unable to duplicate the bug you see based on that.

    Utilizing PHP and HTTP Actions like you have... sounds like the area of issue.

    Leave a comment:


  • jassing
    replied
    Originally posted by jassing View Post
    While no help; I can assure you that this problem is across all products that I've used/tested.
    That should have read -- all IR products....

    Leave a comment:


  • David REMD
    replied
    Intrigued,

    My issue is not in populating the ComboBox with my data, it is with the number of items that display in the dropdown list. I want to limit the number to 6.

    Here is the code that populates the list:
    Code:
    myvalues = {Name1="$Name1"};
    	result = HTTP.Submit(http://www.MyDomain.com/mylist.php, myvalues, SUBMITWEB_GET, 20, 80, nil, nil);
    	myvalues = {Url1="$Url1"};
    	result1 = HTTP.Submit(http://www.MyDomain.com/mylist.php, myvalues, SUBMITWEB_GET, 20, 80, nil, nil);
    	-- Insert a new item into the combobox at index.
    	ComboBox.InsertItem("ComboBox9", 2, result, result1);
    I have the ComboBox Properties Settings set to 6. It does not stop at 6. It populates all 21 items in the list and runs off the page.

    Leave a comment:


  • Intrigued
    replied
    I don't see an issue, seems to as expected. I used this code for my test:

    Code:
    for n=1,21 do
    	ComboBox.InsertItem("ComboBox1", n, n, "")
    end
    I even moved the app.s window so that the ComboBox item would have to repaint "up" and it worked as it should.

    I'd like to see your code that created this issue you saw.

    Leave a comment:


  • David REMD
    replied
    Do you have an example? It doesn't work for me...still runs off the page...no scroll bars.

    Leave a comment:


  • azmanar
    replied
    Hi,

    You can always control the number of items to be displayed on the properties pane of ComboBox.

    Leave a comment:

Working...
X