Get element in combo box indicator
a vi generates an array of strings, how can I select one element with a combo box and send it to another vi as if it is a control?
thanks
hope this helps:
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Attachments:
Untitled 6.vi 6 KB
Untitled 7.vi 8 KB
Similar Messages
-
Combo Box Indicator: mouse wheel bug or feature?
Both ring indicator and slide indicator works fine even when the mouse wheel property is enabled.
But user can change value of the Combo Box indicator at runtime.
Shouldn't it be disabled, by default, just like for the keyboard? After all, it's an indicator.
I know I can disable the mouse wheel feature. It should be disable by default.
Or is there any use of this feature?
George Zou
http://webspace.webring.com/people/og/gtoolbox
Attachments:
Mouse Wheel bug.vi 12 KBI think what you are seeing is a minor bug introduced by the lack of a "Combo Box Indicator" on the palattes. You must drop a control then change direction and there appears to be no built in mouse support property written on direction change leaving you with the default mouse wheel support for a control. Since this is a "windows only" property there might not be an easy way to write the property on direction change without querying App.OS target. And then what do you do on targets that do not have support for the property? Change the behavior? THAT would confuse just about everyone who works with multiple OS's
The work arounds:
Use the key navigation page and pay attention to mouse wheel support for indicators
Add your own combo box indicator to the controls palatte with the right mouse wheel support
Write a VI Analizer test for "Indicator with mouse wheel support"
In Short; this seems like one more thing that can easily trip up a developer. A VI Analizer test for this could help save us from ourselves. Consider uploading yours to the VIA Enthusiasts group
Jeff -
Cant get Data in Combo Box of Udo
Hi
I made one Master Table..then i made User defined field and i linked that field with a table of no object type. Then i registered the UDO of that Master Table.
Then i generate teh form of UDO from SAP b1 UDO FORM GENERATOR. when i saw that form in screen painter then it didnt show the combo box for the field which i linked with no object type table.
i change the type of field in xml file..then its showing the combo box in screen painter but i am unable to get how to link it with table.
can anybody tell why its happen and how to correct it.
Thanks
RupinderHi..
Combobox in udf u have to select set valid values there give ur combo data
Regards...
Billa 2007 -
Getting Dates using combo boxes
I am trying to get a start date and an end date from a combo
box. I have the following AS3 code but it doesn't work. startDay,
startMonth etc are all comboboxes with appropriate data. Just can't
figure the syntax to make it work.
var start_date = new
Date(startYear.selectedIndex,startMonth.selectedIndex,startDay.selectedIndex);
var end_date = new
Date(endYear.selectedIndex,endMonth.selectedIndex,endDay.selectedIndex);
then i want to calculate and display the total days
var nDiffDays = Math.floor((end_date - start_date)/86400000);
totalDays_txt = nDiffDays;
Any help appreciated.There are two of those controls: the drop down list and the combo box. Try the drop down list instead.
-
How Do I Get Item In Combo Box and Not It's Export Value?
I created a Combo Box in Adobe pdf listing Company Names in the Item field. As well, I added an abbreviation for each Company Name in the Export Value field. When I try to display the Company Name from the Item field, it displays the Export Value.
The Combo Box is named "Company-Name".
In it, I have a company called "MacKenzie" within the Item Field. It's Export Value is "MFC".
app.alert(this.getField("Company-Name").value); will display "MFC". How do I display or get the value from the Item field?You can use the getItemAt field method, like:
// Get a reference to the combo box
var f = getField("Company-Name");
// Get the index of the selected item
var a = f.currentValueIndices;
// Show the item value of the selected item
app.alert(f.getItemAt(a, false)); -
How to get values of combo box?
Hi All,
I had a problem that need to be solve asap. I would be very appreciated if anyone could help me.
I had a combo box that contain a string "Flower and Gifts" and when i passed the value to another jsp file it show only "Flower". I had been think for a long time about this problem. How can i pass the value to another jsp file with the whole value "Flower and Gifts".
Please reply asap. Thanks all.Hi,
Even i had the same problem earlier. Just try to print the string that you are passing to the next page, if it reads something like this "Flowers%20and%20Gifts" then you have to replace the special characters (i.e.,'%,2,0')with the blank spaces so that you have the complete string.
Example:
String str = "Flowers%20and%Gifts";
if(str.indexOf('%')!=-1)
str = str.replace('%','');
Thanks,
Rkanth -
How to get Subvalues using Combo box ?
Hi , friends,
I have one Combo box :
Having list of all Districts
When i select one of District it will give all related villages
regarding District that i selected in another combo box.
How to achieve this ? in one page itself
I have another idea but its not good..
where
1) first select District from Combo
2) Press submit
3) second page displays another combo and fetch perticular villages
and display in another combo.
but this technique requires more page navigation.
I want it should be on one page itself
PLEASE HELP ME ....
Ghanshyam
Message was edited by:
Ghanshyamthe brand old dependent combo issue..
as far as i know i could tell you for every two days a similar post is being posted here on the same thread..
you could have taken a look of them....
Anyways there are many ways of doing it....
In the days when XmlHttpRequest Object was not invented ppl used to achieve this using Hidden iframe and then updating parent frame dropdown by calling a javascript function onload of the page. or by auto refershing the page after saving the form state inside the scope of session.
However,using XmlHttpRequest Object (AJAX) nowdays is one of the smater ways of acheving tasks as these.
checkout one such examples where i've posted a similar example in the last reply
http://forum.java.sun.com/thread.jspa?threadID=5170019
hope this might help :)
REGARDS,
RaHuL -
How to get the current selected value of a combo box or a option button?
Hello All,
I want to catch the current selected value of a combo box and also of a option button and want save it into different variables in my code. These option button and combo box are in a SAP business one form which I have created through VB dot.net coding.
But I don't know how to do that, can any one send any example code for this.
Regards,
Sudeshna.Hi Sudesha,
If you want to get the selected values you can do it as follows: The Combo Box value you can get from the combo box. If you want to get it on the change event, you must make sure that you check when BeforeAction = False. If you want to get an Option Button value you should check the value in the data source attached to the option button.
Dim oForm As SAPbouiCOM.Form
Dim oCombo As SAPbouiCOM.ComboBox
Dim oData As SAPbouiCOM.UserDataSource
oForm = oApplication.Forms.Item("MyForm")
oCombo = oForm.Items.Item("myComboUID")
oApplication.MessageBox(oCombo.Selected.Value)
oData = oForm.DataSources.UserDataSources.Item("MyDataSourceName")
oApplication.MessageBox(oData.ValueEx)
Hope it helps,
Adele -
HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge
HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge.
Please help,
I'm trying to use the Java Access Bridge (JAB) 2.1 to get the text in Java Applet controls. I've been able to use the sample code in AccessInfo.cpp sample that comes with JAB to get text from "text" controls in a Java Applet. To clarify, I am referring to the "role" in the AccessibleContextInfo struct being set to "text" or "combo box" or "label".
The problem is, when I use the AccessInfo.cpp sample to get text from a "combo box", the accessibleText data member comes back as FALSE, and thus any of the JAB text functions like GetAccessibleTextInfo fail to get any text information from "combo box" or "label" controls.
I've also tried GetCurrentAccessibleValueFromContext on the "combo box" and "label" controls, but the text returned is empty.
Can anyone help?I have new information in regards to this issue. A contact from Sun did get to me in email and relayed that that "label" objects store their text in the "name" data member of the AccessibleContext structure. This was a big help.
But I'm still stuck trying to get information from "combo box" and other controls, like "push button". The contact said, the Java Access Bridge does not provide all the information because it is already implemented by other interfaces like AccessibleComponent, AccessibleAction, or AccessibleSelection. The contact did not allude to whether these opther interfaces can be used along side the Java Access Bridge or not. So, I'm left a step closer to the goal, but still stuck without the full solution.
Can one take the Java Access Bridge functions, like say those used in the Ferret sample, and close the gap to get text back from "combo box", "push button", and other controls by using some other API in conjunction? -
Ring or combo box control of date
Hi, I am developing a GUI with ring or combo box indicating possible date, i.e., month, day, and year. Or is there a way to create multiple items ran sequentially in a ring or combo box control.
the time stamp is alright, but can't get rid of the current time display in the set time and date dialogue . thanks alot.Hi rookieprgmer,
You will have to format the date into a string to create a ring that contains all the data for the month, date and year. One method for separating the date from a timestamp is to use the Get Date/Time String. You could then take the date string and use it in the ring or combo box. Attached is an example of how to use that function.
What do you mean by running multiple items simultaneously in a ring or combo box?
Hopefully I covered what you were asking about.
Sappster
Attachments:
date.JPG 7 KB -
Problem with combo box in a Matrix column
hi every one, i have a user form with a matrix(uid = 37) with some columns and one column is combo box. in that combo box i have to get values from OSTC table (Code)...i have written this code ..i dont know how to access the combo box so that i can get values to combo box when i execute the prg....
oitem = oForm.Items.Item("37") 37 is uid of omatrix2
oMatrix2 = oitem.Specific
oColumns = oMatrix2.Columns
oForm.DataSources.UserDataSources.Add("CSR1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oColumn = oColumns.Item("V_6") ''for accessing the combo box item [V_6 is col uid ]
oCombo = oColumn.Cells.Item(omatrix2.row).Specific ''''''''problem line
oCombo.DataBind.SetBound(True, "", "CSR1")
rset = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
query = "select Code from OSTC"
rset.DoQuery(query)
Dim tc As String
rset.MoveFirst()
For row = 0 To rset.RecordCount - 1
tc = rset.Fields.Item("Code").Value
oCombo.ValidValues.Add(tc, row)
rset.MoveNext()
Next
oMatrix2.Columns.Item("V_6").DataBind.SetBound(True, "@SALE_CHILD", "U_Tax")Call objMain.objUtilities.LoadComboValuesForMatrix(FormUID, "27", "SELECT Code,Name FROM OSTC Order by Code", "V_19", objMatrix.RowCount)
Public Sub LoadComboValuesForMatrix(ByVal FormUID As String, ByVal ItemUID As String, ByVal strQuery As String, ByVal MtrxColId As String, ByVal Rowcount As Integer)
Dim inti As Integer
objRecSet = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Try
Dim objmatrix As SAPbouiCOM.Matrix
Dim objCombo As SAPbouiCOM.ComboBox
objForm = objMain.objApplication.Forms.Item(FormUID)
objItem = objForm.Items.Item(ItemUID)
objmatrix = objItem.Specific
objCombo = objmatrix.Columns.Item(MtrxColId).Cells.Item(Rowcount).Specific
objItem.DisplayDesc = True
objRecSet.DoQuery(strQuery)
If objRecSet.RecordCount > 0 Then
If (objCombo.ValidValues.Count > 0) Then
For inti = 0 To objRecSet.RecordCount - 1
objRecSet.MoveNext()
Next
End If
If (objCombo.ValidValues.Count <= 0) Then
objCombo.ValidValues.Add("", "")
For inti = 0 To objRecSet.RecordCount - 1
objCombo.ValidValues.Add(Convert.ToString(objRecSet.Fields.Item(0).Value), Convert.ToString(objRecSet.Fields.Item(1).Value))
objRecSet.MoveNext()
Next
End If
End If
Catch ex As Exception
Throw ex
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(objRecSet)
GC.WaitForPendingFinalizers()
GC.Collect()
End Try
End Sub -
Hello,
Why doesn't the selector work on a combo box indicator? It works when fine when I make the combo box a control, but then the user can type into the combo box and modify values. I am using a combox box to allow the user to select from a list of strings that represent the last 8 unique commands that we sent to a piece of test equipment.
Regards,
Kaspar
Regards,
KasparHi Kaspar,
because an indicator is to show something and a control is to control something! You can use an event case to check the user input or you can simply uncheck the "allow undefined strings" property.
Mike
Message Edited by MikeS81 on 07-15-2008 08:52 PM -
I have a packardbell laptop with photoshop elements 8 installed from new. I have used it on several occasions but I cannot get it to run now. When I open a photo using elements the Adobe box pops up saying that the programme has unexpectedley quit? can anyone help me please as I have several photos to edit before the end of this month. Many thanks for any help
The "restore disk" is built into the Mac. See About Recovery.
Need more specifics about what error messages you got while installing Adobe Flash.
However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
Click the Try something new! link at the bottom of the YouTube page.
I don't know about the sound issue. Might be hardware as you think. Try other headphones to check. -
How to get the values from xml file to java combo box
Hi frens,
I am new to java and xml programming,
Now, i want to have a code of getting the tag values from the xml file
into the swing combo box of java front end.
How can we do that?
any help of code or tutorial or an ebook is a great help for me.
Thank you,
Karthik.
Edited by: Karthik84 on Aug 27, 2008 1:49 AM
Edited by: Karthik84 on Aug 27, 2008 11:29 PMlook at this link
http://www.stylusstudio.com/docs/v2006/d_help30.html
I read sometime back that castor has a tool to do
conversion. You might have a look into casto as well. -
Search Engine issues and how to get multiple answers in combo box
I'm doing a project in vb6 i have a data where when i search it should give multiple answers in combo box.
example i have a debtor code each debtor code as more than one addresses when i search in one debtor code how can i get multiple addresses in the combo box. my search engine command
as follows
Private Sub Command2_Click()
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.Find "DEBTOR_CODE = '" & Text11.Text & "'"
If Adodc1.Recordset.EOF = True Or Adodc1.Recordset.BOF = True Then
MsgBox "Record Not Found!", vbApplicationModal
Adodc1.Recordset.MoveFirst
Me.Combo1.SetFocus
Me.Combo1.ListIndex = Me.Text11.Text
End If
End Sub
when i search in my text filed i should answer to the debtor code i'm finding and multiple answer in the combo box for the same debtor code.
Please help ;(Hello,
This forum is for VB.NET for VB6 please review the links at
the following page.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.
Maybe you are looking for
-
How to install Oracle 8i and Form 6i / Reports 6i on same machine
Hi All I have installed Oracle 8i on my machine, now i wants to install the forms 6i and reports 6i. Please advise me the steps as it is asking for seperates home folder. also tell me about the version of oracle / Developer forms & reports i can inst
-
why can't I sign into my account and add a rescue email so I will be able to redo my security questions? I have been unable to buy anything from Itunes because it's asks me for security questions that I don't remember what I put in the first place
-
No Audio Device Detected (but it shows up correctly in device-manag
Well, I bought a new soundcard, since I was tired of my old integrated one, and wanted good surround-sound. The model is Creative Sound Blaster X-Fi Xtreme Gamer Fatalty, and my old integrated one is a Realtek-HD (doesn't say more than that). Now to
-
Vevo App issues with Apple TV 6.02 update
I have 2 Apple TVs. One is running the 6.0 software and the newest Apple TV that we got for Christmas is running 6.02. The Vevo app doesn't appear to be working correct on version on 6.02. The videos have some sort of lag. It is almost as if they
-
Screen EXIT - Not getting TKNUM value in any of the include
Hi All, In my requirement, 1. I need a copy screen 2800 of function group LMOB into Custom screen 9800(subscreen) of Function group XLRF. - done. 2. Created the variant 1 for the custom screen 9800 3.I need to check the shipment status based on the s