Method of getting values from parameter ID to a form
Hi,
Is it possible to get the value of a parameter ID from a FORM? If so, can you please give me the code to do it.
Thanks
Lilan
User, please tell us your jdev version!
Not sure I understand your use case correctly. However it sounds like you use a master VO as a table and select one row to show the details from a different VO.
In this case I outlined a solution here: Using diferent VOs for Master Detail Navigation (the Declatative Way) | JDev & ADF Goodies
Navigation on the detail will not work as there is only one row (the selected one) in the iterator.
Timo
Similar Messages
-
Getting values from a function module called in a WDA method
Friends,
I am trying to execute a function module from WDA.
I have created a service call for the function module. The function module takes values from the user, looks up the corresponding values of another field and returns the values in an internal table.
I am using the "Method Call in Used Controller" of WD Code wizard to call the function module.
When the event handler method containing the call to the function module is executed, nothing happens.
I am not sure how to pass values to the function module and to get the return values from the function module.
I am new to using function modules from WDA. Please help me out.
Thanks and Regards.Rashmi,
Is the function module intended to collect input data from the UI and process it? - Yes
If yes, then the input (importing parameter) to the Function Module is a table of values (which should be ideally from the context mapped to the Table UI Element). - The importing parameter is a single value NOT a table and is mapped to the view context.
Now this table UI Element is bound to the view controller context , which in turn is mapped to the component controller context. And you are indeed being able to read the value of this internal table in the component controller method where the function module is being called by means of get_static_attributes_table (Is this right? - Yes, I am able to read the table of values that is passed from the component controller view to form view context by using get_static_attributes_table.
Or are you being able to read it in the event handler method of the view controller and not being able to read it in the component controller method) -
The function module takes a single value as import parameter and returns a table of values as return value.
It works fine when no importing parameter is being used and returns the table of values that is getting passed from component controller context to form view context when i am able to read it using get_static_attributes_table.
Now the question is: how to pass the import parameter value to the function module. I assumed since the importing parameter is a context node (like the return values are), i should set the value ( captured when the user enters the value in the form) to the importing parameter context attribute using set_attribute method. Since it is mapped to the component controller context, i assumed it will get passed and the method will take it as input parameter.
Let me know if my assumptions are correct regarding passing the import parameters and what is missing here.
Thanks and Regards. -
Getting value from portal or bsp application to selection screen parameter
Daer SDNer's.
Is there any possibility of getting value from bsp application and that value to be passed to selection paramater of bw query varaiable.
concept as follows.
report is based on vendor related information. particular vendor having user id in bsp or portal for accessing reports. if he selects bw query in portal or bsp dash board. that same vendor name or id shoukd be pass to default vendor selection entry in bi... so only that particular vendor details should display.....
HarikrishnaDear Arun,
thanks for the reply. can i dynamically get the values to selection parmaters from bsp or else i need to mantain those user ids(vendor name) in bw. could you explain on it. if possible provide some sample code on it.
Thanks
Harikrishna N -
How to get values from a stored package variable of type record ?
Sir,
In my JClient form, I need to get values from a database stored package variable of type record. And the values are retained in the JClient form for the whole session. The values are copied only once when the form is started.
What is the best way to do that ?
Thanks
StephenStephen,
not sure what your model is, but if it is Business Components, I think I would expose the properties as a client method on the application module. This way all JClient panels and frames will have access to it. You could use a HashMap to store the data in teh app module.
If JDBC supports the record type, then you should be able to call it via a prepared SQL statement. If not, you may consider writing a PLSQL accessor to your stored procedure that returns something that can be handled.
Steve Muench provides the following examples on his blog page
http://otn.oracle.com/products/jdev/tips/muench/stprocnondbblock/PassUserEnteredValuesToStoredProc.zip
http://otn.oracle.com/products/jdev/tips/muench/multilevelstproc/MultilevelStoredProcExample.zip
Frank -
JSF:how to get value from dinamically generated HtmlInputText components�H�H
<h:panelGroup binding="#{dynamicInputGroupBean.group}"/>
public HtmlPanelGroup getGroup() {
if (this.getSelectedComp() == null) {
return this.group;
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
this.group = new HtmlPanelGroup();
Set pSet = this.getSelectedComp().getParameterses();
int size = pSet.size();
this.instanceValue = new String[size];
int i = 0;
for (Iterator it = pSet.iterator(); it.hasNext();) {
Parameters tempP = (Parameters) it.next();
HtmlOutputLabel outputLable = new HtmlOutputLabel();
HtmlInputText inputText = new HtmlInputText();
inputText.setId("p" + i);
String valueBindingExpression = "#{dynamicInputGroupBean.instanceValue["+i+ "]}";
System.out.println(valueBindingExpression);
ValueBinding valueBinding = application
.createValueBinding(valueBindingExpression);
inputText.setValueBinding("value", valueBinding);
outputLable.setFor(inputText.getId());
outputLable.setValue(tempP.getParaname() + ": ");
group.getChildren().add(outputLable);
group.getChildren().add(inputText);
i++;
// group.getChildren().add(new HtmlInputText());
return group;
}as codes show above, i successfully genera HtmlInputText dinamicaly�C
but i got problems while i try to print those values...
after the the jsp page presents in my browser,
i input some words in the input components,
and then click a commandButton hold an action to print their value
action code :
String[] tempArray = this.getInstanceValue();
for (int i = 0; i < tempArray.length; i++) {
System.out.println(tempArray);
only NULL has been printed in the consol ....not the word i inputed!!!
so my question is how can i get values from those
dinamically generated HtmlInputText ????This approach is odd. What's the functional requirement after all? You normally attach the inputtext value to a backing bean property and do the desired command button action which is attached to a backing bean action method. In this method you then use the value for the query.
-
How to get values from an IFrame...
Hi everyone. I have come to a complete stop i my project and need to ask the following: How do i get the values from an IFrame.
Situation: I have a main.jsp page that contains an IFrame(data.jsp). Data.jsp is basically made up of a bunch of checkboxes. The state of these boxes(checked or unchecked) is determined and set by a JAVA program and the results are then stored in a StringBuffer. Contents of Stringbuffer could look something like this: <tr><input type='checkbox' name='box0' CHECKED></tr>.
The StringBuffer in then presented in the IFrame(data.jsp) like so: <%=res.getInfo()%>
The user should be able to check or uncheck the boxes from the main.jsp page then when pressing a submit button the changes should be stored in a DBase.
After the submit button have been pressed i go into my Servlet's doPost() method for some basic processing. This is were the problem starts. I usally use HttpServletRequest.getParameter(String param) to get values from the main.jsp page. But these checkboxes are stored in the IFrame, so how do i go about to retrieve the values from data.jsp from the doPost() method or in some other way maybe. This is quite urgent and i hope that i have explained the scenario in enough detail.
Any help would be greatlly apritiated.
Best regards
PeterHello
Just try this link
http://www.faqts.com/knowledge_base/view.phtml/aid/13758/fid/53
HTH -
How to get value from one context node to otehr contect conde in diff views
Hello Guru's
We have a rek which is of getting the value from one context node to other context node,
for example there is Total value in BT111H_OPPT/ITEMLIST (One context node) we need to have the same Total value in the in BT111H_OPPT/DETAILS (other context node) automatically
Inputs are highly appricated.......Hello,
Thanks for your Reply
But my rek is i want to get value from different views
eg BT111H_oppt/itemslist(contex node - BTADMINI) field net value to BT111h_opp/Details(Context node - BTopporth)
for this which method should i use to chive this.
Thanks.. -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Getting values from a datagrid to an ArrayCollection
Hi, I have a drag and dropable datagrid. I fill it with rows of data from another datagrid. Finally, my application demands savings the data from the datagrid into an array collection along with the index of each row. How do i get values from a datagrid into an arrayCollection variable? Please help me..!
Whatever is dropped into the DataGrid automatically goes into its dataProvider property, typically an ArrayCollection. Just access the data grid's dataProvider property to see the values.
-
How can I get values from listbox?
Hi all,
I need to get price values from Price List (Inventory -> Item Master Data screen). It's important to get values from field 'Price' BEFORE item will be added/updated.
How can I get values from Pricelist listbox?
Thanks for any suggestions or short sample code.
Best regards,
AndyHi Andy
Here is som sample code that will get the description of the price list and also the price that is displaying at the time. The item master must be open for this snippet of code
Public Sub GetItemPriceFromOpenWindow()
'this is assuming item master is open
Dim oEdit As SAPbouiCOM.EditText
oEdit = SBO_Application.Forms.GetForm("150", 1).Items.Item("34").Specific
SBO_Application.MessageBox(oEdit.Value)
Dim oCmb As SAPbouiCOM.ComboBox
oCmb = SBO_Application.Forms.GetForm("150", 1).Items.Item("24").Specific
SBO_Application.MessageBox(oCmb.Selected.Description)
End Sub
Hope it helps -
POPUP FM to get values from a table control?
I know about the FM POPUP_GET_VALUES to get one or more values from a popup dialog box. I would like to find a similar FM that allows getting values from a table control or something that allows entry of multiple lines of values. Is there such a thing, or do I need to write my own?
it depends on what values you want to enter, better write your own to have a control on the function.
-
How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM -
Help: cant get values from a resultset
i have a class that contains all my MySQL statement and i am trying to use the results found from one of my select statements to pass on into another class which displays the results in a gui form. Here is my query:
public void profile(String user)
try
Class.forName(driver);
Connection con = DriverManager.getConnection( url,db_user, db_pass);
String username, name, email, dob, bio, gender, homepage, number;
//find username and select all details
String find = "SELECT Username, Full_name, Email, dob, Biography, Gender, Homepage, Contact_number FROM users WHERE Username = ? ";
PreparedStatement ps1 = con.prepareStatement(find);
ps1.setString(1, user);
ResultSet rs = ps1.executeQuery();
while(rs.next())
//retreive information from the server
username = rs.getString(1);
name = rs.getString(2);
email = rs.getString(3);
dob = rs.getString(4);
bio = rs.getString(5);
gender = rs.getString(6);
homepage = rs.getString(7);
number = rs.getString(8);
User_Profile profile = new User_Profile(username, name, email, dob, bio, gender, homepage, number);
JOptionPane.showMessageDialog(null, username + bio + email, null, JOptionPane.ERROR_MESSAGE);
con.close();
catch( Exception e )
e.printStackTrace();
JOptionPane.showMessageDialog(null, "error," + e.getMessage(), null, JOptionPane.ERROR_MESSAGE);
}As you can see, i am trying to pass on the variables username, name, etc to a new instance of my user_profile class but it doesnt for some reason. i dont get any comple errors so thats ok. i created messege dialog box from within the while statement above to see if a value is stored, and yes their is a value stored in my variables
below is the user profile class which shows my constructor that suppose to get the values from the query class in this code entered above User_Profile profile = new User_Profile(username, name, email, dob, bio, gender, homepage, number);
protected String username;
protected String FullName;
protected String Email;
protected String DOB;
protected String Biography;
protected String Gender;
protected String Homepage;
protected String Con_Number;
protected String crnt_user;
public User_Profile(String user, String name, String email, String dob,
String bio, String gender, String homepage, String number)
initComponents();
addWindowListener( this );
//get values from sql query and store them here.
this.username = user;
this.FullName = name;
this.Email = email;
this.DOB = dob;
this.Biography = bio;
this.Gender = gender;
this.Homepage = homepage;
this.Con_Number = number;
}the code below is used to display one of the values received from the query class, in this case returns null..
txt_name.setText(username)Does the user String match the database String
exactly?
Some databases are case sensative.Sorry posted before done.
Also, ensure you do not have trailing spaces in one or both. I remember Oracle had this problem a few years ago using the Type 4 driver but not through ODBC. -
Getting values from a running window
has anyone ever used a program that could retrieve values from an opened window? I have this poker calculator program that can get values from an open poker window. It has a list of about 50 different types of windows (exes, iexplorer, different sites etc.).
Is there any simple way in java of doing something like this?its not done by a screenshot, because you just give
it the window's title. It works even if its
minimized.At least in Windows, if you have the window's title then you can get a link to the application and you can find out all sorts of information about it. So your conclusion that screenshots aren't involved isn't correct. They may or may not be involved. But this access is done by a native Windows API and Java doesn't support that. -
Hi,
I would like to get values from a Map. This is my Map
courrierId659 = [Ljava.lang.String;@7e6f03,
nomModele = [Ljava.lang.String;@aa594b,
navigation = [Ljava.lang.String;@1cc67fd,
dateImpression = [Ljava.lang.String;@bf2fa9,
nomGestionnaire = [Ljava.lang.String;@1d2279c,
courrierId650 = [Ljava.lang.String;@64635b,
selection = [Ljava.lang.String;@1a93ff1
I want to get all the values whose keys start with courrierId, is possible to get these values in a effective way? or I have to iterate through the Map?
Thank you in advanceelsymenab wrote:
I want to get all the values whose keys start with courrierId, is possible to get these values in a effective way?Yes. Loop through the keys, and where the key meets your criteria, get the value.
or I have to iterate through the Map?That sounds pretty effective to me.
~
Maybe you are looking for
-
Problem in Farsi(fa) Alphabetical
There is a problem in farsi Alphabetical order in mozilla firefox, because even if I set the language to Farsi(fa-AF), it brings "و" before "ه" and brings "و" after "آ" while the correct order is in "http://en.wikipedia.org/wiki/Persian_alphabet". To
-
I have and apple mackbook pro sync'd to an apple tv and all works OK however, when I sync some tv shows, on the apple tv the TV show name is removed in the listing and is replaced by the word various. it only happen with some tv shows to the point I
-
The 1 mil $ Q = Will the new intel chips be able to run Windows Vista?
Ditto?
-
(WD ABAP) TreeByNestingTableColumn in ALV?
To anybody who can answer this: Is it possible to have a TreeByNestingTableColumn in the ALV? And if it is, can someone provide code as to how this is possible? Regards, Christopher Cedro
-
Batch Convert ,mov to ?
Hi all, for those of you that may have been reading my post on losing video previews on here, you will know why I am asking this question. My problem is this..Any footage I have either stock or homemade in . mov format with an RGB+Alpha will not relo