How to copy Location value from PO Schedule to Deliver To in PO Distrib.
Hi,
While creating a Purchase Order in Buyer's Work Bench, I need to copy value entered in the Location field of Schedules Tab into Deliver-To field of Distributions tab. Can it be done by OA Personalization using SPEL ${oa.<viewObject>.<viewAttr>}.
Where do I find what is the viewobject and viewattribute name of Location field in Schedules tab?
Thanks
Rao
SPEL cannot be used for this purpose.
You need to extend the controller and copy the value like..
VoRow.setAttribute("XXXAttribute",VoRow.getAttribute("YYYAttribute"));
--Prasanna
Similar Messages
-
How to copy characteristic values from Purchase Order to MIGO Goods Receipt
Dear all,
I have a configurable material X,
then i create a purchase order for that material and then i input characteristic value in the Purchase Order transaction and save it
However when i do the Goods Receipt transaction via MIGO and using the Purchase Order number that i have created, after i entry the batch number and want to check the classification, the characteristic value are blank, so it is not copied from the Purchase Order
I've tried guide from
http://help.sap.com/saphelp_erp60_sp/helpdata/en/92/9b4a23a46411d6b28300508b5d5c51/content.htm
but i do not find the configuration for copying rule
Is there any one who can resolve this problem??
Regards,
MarufatHi,
You define the copying rules for a movement type in Customizing for Batch Management under Batch Valuation , Valuation for Goods Movement in Inventory Management , Activate Batch Classification for Goods Movements in IM. Please refer below link. Thanking you.
http://help.sap.com/saphelp_me52/helpdata/EN/47/39867251500aa7e10000000a114a6b/content.htm -
How to copy a value from one Frame to another Frame.
Hi,
I am new to Swing and AWT prgramming .
I have created a menu called " Test window " and it contains toplevel menu item "File" and File Menu contains subitems "Product Evaluation", "ProcessEvaluation", "ResourceEvalation", "TotalEvaluation" and "Exit".
When i click File->Product Evaluation it displays a new Frame named frame1 , similarly if i click ProcessEvaluation , ResourceEvalation , TotalEvalation it displays frame 2 , frame 3 and frame 4 Respectively,
frame 1 , frame 2, frame 3 contains four textfields with names t1,t2,t3 and t4.(NOTE: I have given same names for textfields in all three frames so that in future i want to extend my GUI).
frame 4 contains 4 textfields with names t5,t6,t7,t8 and 4 buttons (b1,b2,b3,b4).
After i compile my program i will select ProductEvaluation and enter some values in textfield of frame 1 and minimise it. Similary i will open ProcessEvaluation and TotalEvaluation and enter values in textfields of frame2 and frame3 and minimise them.
My queston is now if i select TotalEvaluation and press Button1 in frame 4 it should display in textfield t5 the value extracted from t1 in frame1 added to the value extracted from t1 in frame 2 added to the value extracted from t1 in frame 3.
ie after pressing Button 1 textfield t5 should conatin value of t1 in frame1+ value of t1 in frame2 + value of t1 in frame3.
I am sending the code.
Can you please help me.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Component;
// Make a main window with a top-level menu: File
public class MainWindow extends Frame {
public MainWindow() {
super("Test Window");
setSize(500, 500);
// make a top level File menu
FileMenu fileMenu = new FileMenu(this);
// make a menu bar for this frame
// and add top level menus File and Menu
MenuBar mb = new MenuBar();
mb.add(fileMenu);
setMenuBar(mb);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
exit();
public void exit() {
setVisible(false); // hide the Frame
dispose(); // tell windowing system to free resources
System.exit(0); // exit
public static void main(String args[]) {
w = new MainWindow();
w.setVisible(true);
private static MainWindow w ;
protected TextField t1, t2, t3, t4,t5,t6,t7,t8;
// Encapsulate the look and behavior of the File menu
class FileMenu extends Menu implements ActionListener {
private MainWindow mw; // who owns us?
private MenuItem itmPE = new MenuItem("ProductEvaluation");
private MenuItem itmPRE = new MenuItem("ProcessEvaluation");
private MenuItem itmRE = new MenuItem("ResourceEvaluation");
private MenuItem itmTE = new MenuItem("TotalEvaluation");
private MenuItem itmExit = new MenuItem("Exit");
public FileMenu(MainWindow main) {
super("File");
this.mw = main;
this.itmPE.addActionListener(this);
this.itmPRE.addActionListener(this);
this.itmRE.addActionListener(this);
this.itmTE.addActionListener(this);
this.itmExit.addActionListener(this);
this.add(this.itmPE);
this.add(this.itmPRE);
this.add(this.itmRE);
this.add(this.itmTE);
this.add(this.itmExit);
// respond to the Exit menu choice
public void actionPerformed(ActionEvent e) {
if (e.getSource() == this.itmPE) {
final Frame frame1 = new Frame("Frame1");
frame1.setSize(700,700);
frame1.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame1.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame1.add(t2);
t3 = new TextField("");
t3.setBounds(430, 230, 50, 24);
frame1.add(t3);
t4 = new TextField("");
t4.setBounds(530, 230, 50, 24);
frame1.add(t4);
frame1.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame1.dispose();
frame1.setVisible(true);
else
if (e.getSource() == this.itmPRE) {
final Frame frame2 = new Frame("Frame2");
frame2.setSize(700,700);
frame2.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame2.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame2.add(t2);
t3 = new TextField("");
t3.setBounds(430, 230, 50, 24);
frame2.add(t3);
t4 = new TextField("");
t4.setBounds(530, 230, 50, 24);
frame2.add(t4);
frame2.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame2.dispose();
frame2.setVisible(true);
else
if (e.getSource() == this.itmRE) {
final Frame frame3 = new Frame("Frame3");
frame3.setSize(700,700);
frame3.setLayout(null);
t1 = new TextField("");
t1.setBounds(230, 230, 50, 24);
frame3.add(t1);
t2 = new TextField("");
t2.setBounds(330, 230, 50, 24);
frame3.add(t2);
t3 = new TextField("");
t3.setBounds(430, 230, 50, 24);
frame3.add(t3);
t4 = new TextField("");
t4.setBounds(530, 230, 50, 24);
frame3.add(t4);
frame3.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame3.dispose();
frame3.setVisible(true);
else
if (e.getSource() == this.itmTE) {
final Frame frame4 = new Frame("Frame4");
frame4.setSize(700,700);
frame4.setLayout(null);
t5 = new TextField("");
t5.setBounds(170, 230, 50, 24);
frame4.add(t5);
t6 = new TextField("");
t6.setBounds(270, 230, 50, 24);
frame4.add(t6);
t7 = new TextField("");
t7.setBounds(370, 230, 50, 24);
frame4.add(t7);
t8 = new TextField("");
t8.setBounds(470, 230, 50, 24);
frame4.add(t8);
ActionListener action = new MyActionListener(frame4, t5, t6, t7, t8);
Button b1 = new Button("Button1");
b1.setBounds(170, 400, 120, 24);
b1.addActionListener(action);
frame4.add(b1);
Button b2 = new Button("Button2");
b2.setBounds(300, 400, 120, 24);
b2.addActionListener(action);
frame4.add(b2);
Button b3 = new Button("Button3");
b3.setBounds(420, 400, 120, 24);
b3.addActionListener(action);
frame4.add(b3);
Button b4 = new Button("Button4");
b4.setBounds(550, 400, 120, 24);
b4.addActionListener(action);
frame4.add(b4);
frame4.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame4.dispose();
frame4.setVisible(true);
else {
mw.exit();
class MyActionListener implements ActionListener {
private Frame frame4;
private TextField t5;
private TextField t6;
private TextField t7;
private TextField t8;
public MyActionListener(Frame frame4,TextField tf5, TextField tf6, TextField tf7, TextField tf8)
this.frame4 = frame4;
this.t5 = tf5;
this.t6 = tf6;
this.t7 = tf7;
this.t8 = tf8;
public void actionPerformed(ActionEvent e) {
String s = e.getActionCommand();
if (s.equals("Button1")) {
// I think code for the Button1 action can be written here
hi,
u have ot submit the values using
b1 for f1,
b1 for f2 and
b1 forf3
after u can access the values in to f4 other wise u con't
what u have to do use method in each frame like
setValueforframe1() { } and 2 and 3
and u can call this method in frame 4 and u can get the values -
How to copy Location toolbar from previous Firefox versions
Hi,
I've been using a very old version of Firefox (3.0.16), mainly because I like very much its intuitive, centrally-located and coloured Location Toolbar. Is there any chance of to import the old Location Toolbar (or its icons)to the new Firefox 11.0? Many thanks.Do you mean the Navigation Toolbar with the URL box? If so, then everything should be ported over when you update. Just so you know, we strongly suggest you get Firefox 11.0 ASAP, as it contains many security fixes, patches, and updates not available to Firefox 3 users. [ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-11.0/win32/en-US/Firefox%20Setup%2011.0.exe Here's the download link (direct from Mozilla's download servers).]
-
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get real value from selectOneChoice with javascript?
Hi,
How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
JSF page:
<af:resource type="javascript">
function parseAddress(event)
alert("new value: " + event.getNewValue());
</af:resource>
<af:selectOneChoice label="Location:" value="" id="soc4">
<af:clientListener type="valueChange" method="parseAddress" />
<f:selectItems value="#{Person.locations}" id="si7"/>
</af:selectOneChoice>
HTML :
<option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
<option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
Thanks a lot.Something I was missing ,
You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelBox text="PanelBox1" id="pb1">
<af:selectOneChoice label="Set Log Level" id="soc1"
value="#{SelectManagedBean.loggerDefault}"
valuePassThru="true">
<af:selectItem label="select one" value="First" id="s6"/>
<af:selectItem label="select two" value="Second" id="s56"/>
<af:clientListener method="setLogLevel" type="valueChange"/>
</af:selectOneChoice>
<af:resource type="javascript">
function setLogLevel(evt) {
var selectOneChoice = evt.getSource();
var logLevel = selectOneChoice.getSubmittedValue();
// var logLevelObject = AdfLogger.NONE;
alert("new value is : " + logLevel);
//alert(evt.getSelection);
//alert(logLevelObject);
evt.cancel();
</af:resource>
</af:panelBox>
</af:form>
</af:document>
</f:view>
</jsp:root> -
Copy selected values from a table control into another table control
hi there,
as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?you're funny
i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
here's my code, maybe you can tell me exactly were i have to change it:
tc1 = upper table control
tc2 = lower table control
SCREEN 0100:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE get_nfo. --> gets data from the dictionary table
MODULE tc1_change_tc_attr.
LOOP AT it_roles_tc1
INTO wa_roles_tc1
WITH CONTROL tc1
CURSOR tc1-current_line.
ENDLOOP.
MODULE tc2_change_tc_attr.
LOOP AT it_roles_tc2
INTO wa_roles_tc2l
WITH CONTROL tc2
CURSOR tc2-current_line.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT it_roles_tc1.
CHAIN.
FIELD wa_roles_tc1-agr_name.
FIELD wa_roles_tc1-text.
ENDCHAIN.
FIELD wa_roles_tc1-mark
MODULE tc1_mark ON REQUEST.
ENDLOOP.
LOOP AT it_roles_tc2.
CHAIN.
FIELD wa_roles_tc2-agr_name.
FIELD wa_roles_tc2-text.
ENDCHAIN.
FIELD wa_roles_tc2-mark
MODULE tc2_mark ON REQUEST.
ENDLOOP.
MODULE ok_code.
MODULE user_command_0100.
INCLUDE PAI:
MODULE tc1_mark INPUT.
IF tc1-line_sel_mode = 2
AND wa_roles_tc1-mark = 'X'.
LOOP AT it_roles_tc1 INTO g_tc1_wa2
WHERE mark = 'X'. -
> big problem here is, that no entry has an 'X' there
g_tc1_wa2-mark = ''.
MODIFY it_roles_tc1
FROM g_tc1_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc1
FROM wa_roles_tc1
INDEX tc1-current_line
TRANSPORTING mark.
ENDMODULE. "TC1_MARK INPUT
MODULE tc2_mark INPUT.
IF tc2-line_sel_mode = 2
AND wa_roles_tc2-mark = 'X'.
LOOP AT it_roles_tc2 INTO g_tc2_wa2
WHERE mark = 'X'. -
> same here, it doesn't gets any data
g_tc2_wa2-mark = ''.
MODIFY it_roles_tc2
FROM g_tc2_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc2
FROM wa_roles_tc2
INDEX tc2-current_line
TRANSPORTING mark.
ENDMODULE.
thx for anybody who can help with this! -
How to retrieve the values from a table if they differ in Unit of Measure
How to retrieve the values from a table if they differ in Unit of Measure?
If no data is read
- Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
If no quanity in result internal table
- There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
- - Remove the CORRESPONDING, so quantity will fill the first field adqntp1. ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
- - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
* Fill the internal table
SELECT msehi adqntp
INTO TABLE internal table
FROM lipso2
WHERE vbeln = wrk_doc1
AND msehi IN ('KL','K15','MT').
* If required move the read quantity in the appropriate column.
LOOP AT internal_table ASSIGNING <fs>.
CASE <fs>-msehi.
WHEN 'K15'.
<fs>-adqnt2 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
WHEN 'MT'.
<fs>-adqnt3 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
ENDCASE.
ENDLOOP.
- You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
Regards,
Raymond -
Picking or copying Characteristics Value from material master
Dear Experts,
Please i create five Characteristics which i assign to a Class ( of type 022 ). The Class is then assigned to materials in the classification View of the Material Master.
I want one of the five Characteristics to copy its values from specific parameter value maintaned in the Material Master.
Please assist on how to accomplish this?
I did the following but did not get the desired results; While creating this Characteristic, in the Values Tab, I filled ''MARC'' in the Tablename field & in the Fieldname field, i enter the technical fieldname of the particular field from table MARC which i want.
I want this particular value to be automatically copied into the Characteristics Value field in the Foreground for eacb batch anytime Goods Receipt is done.
after doing this, anytime Goods Receipt is done & a batch number generated, it takes me to the Classification screen, but this particular field which i desire to be auto updated remains blank.
Please assist ?Hi,
1. This will not automatically updated just as we wil fill the addtional date table and field.
2. you need to write the object dependency to get it updated when you call somewhere
3. Generally in the batch level you will be able to do this .( even you can use function / object dependency )
Reg
Dsk -
Copying the value from a cell in the SQL results?
I run an sql query. The results are returned in a results window. I would like to copy the value from this cell
and paste it into an sql query. How can I do this? I can copy and paste a value from a cell in the view of the data in
a table, but not from the test results. How do I do this? Is there a setting I need to change?I usually do this kind of operations and I've never had any issues, the procedure is as simple as CTRL-C in the results grid, with the required column/columns selected and CTRL-V in the worksheet or anywhere else.
If you still have issues please post your
- SQLDeveloper version
- Java Version
- OS
- Database Version
and if you can a small test case. -
How to get each value from a parameter passed like this '(25,23,35,1)'
Hi
One of the parameter passed to the function is
FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
pi_flag_codes will be passed a value in this way '(25,23,35,1)'
How to get each value from the string
like 25 first time
23 second time
35 third time
1 fourth time
I need to build a select query with each value as shown below:-
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 25 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 23 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
(SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 35 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
group by t2.org_id) q3,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 1 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.chris227 wrote:
I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
select
regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
from dual
S1 S2 S3 S4
"25" "23" "35" "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
If t2.att_type is type of number you will do:
t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
I am using oracle 10g.
In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
say 25 is at 1 position.
23 is at 2
35 is at 3
1 is at 4.
the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
Please see the code I wrote for it, But the select query is having error:-
BEGIN
IF(pi_flag_codes IS NOT NULL) THEN
SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
*(SELECT '(25,23,35,1)' V_CNT FROM dual);*
DBMS_OUTPUT.PUT_LINE(V_CNT);
-- V_CNT := 3;
FOR L_CNT IN 0..V_CNT LOOP
if L_CNT=0 then
V_S_POS:=1;
V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
else
V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
end if;
if L_CNT=V_CNT then
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
else
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
end if;
VN_ATYPE := ' t2.att_type = ' || V_ID;
rec_count := rec_count +1;
query_no := 'Q' || rec_count;
Pls help me with fetching each value to build the where cond of the select query along with the query number.
Thank You. -
How to get selected value from selectOneRadio ???
Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
Plzzzzzzzz i need helpYou have a datatable in which each row is a question, correct?
Also in each row you have 5 possible answers that are in a radio, correct?
So,
You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
ex:
<h:selectOneRadio value="#{notas.selectedString}" id="rb">
<f:selectItem itemValue="#{notas.valuesList}"/>
</h:selectOneRadio>
Search the web for examples like yours. -
How to get actual value from LOV list
Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
Thanks.Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
<html:select property="UserJobCompanyId"
disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
onchange="submitform();">
<html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>
</html:select>and I want to get CompanyID of selected Company.
Thanks, again. -
How to get column value from DB grid
Hi!
I wander how to get col value from GridControl?
My app consists of one rowsetinfo with two
columns CODE and DESCRIPTION and a jbutton
titled SELECT. When user clicks SELECT button
the app should show the value of the CODE col
of the selected row in GridControl.
I wander how to make this action ?
XxpsTransTimesMasterIter.setAttributeInfo( new AttributeInfo[] {
CODEXxpsTransTimesMasterIter,
DESCRIPTIONXxpsTransTimesMasterIter} );
XxpsTransTimesMasterIter.setName("XxpsTransTimes");
XxpsTransTimesMasterIter.setQueryInfo(new QueryInfo(
"XxpsTransTimesMasterIterViewUsage",
"lov.XxpsTransTimes",
"CODE, DESCRIPTION",
"XXPS_TRANS_TIMES",
null,
null
));Hi,
You could attach an ActionListener on the JButton, and try the following code :
NavigationManager fm = NavigationManager.getNavigationManager();
DataItem dataItem = fm.getFocusedControl().getDataItem();
ImmediateAccess col_code = null;
String code = null;
if (dataItem != null && dataItem instanceof RowsetAccess) {
RowsetAccess rowset = (RowsetAccess)dataItem;
try {
col_code = (ImmediateAccess) rowset.getColumnItem("CODE");
code = col_code.getValueAsString();
} catch (DuplicateColumnException de) {
return;
} catch (ColumnNotFoundException ce) {
return;
} catch (SQLException se) {
return;
JTextField tf = new JtextField();
tf.setText(code);
I haven't tested this code.
I am curious to know, the Object type of the dataItem.If it doesnot happen to be RowsetAccess ..try.. ScrollableRowsetAccess OR ImmediateAccess.
Your code would change accordingly, depending on the instance.Refer to the product documentation for this.
Do let me know, if this works.
TIA
Sandeep -
How to get string value from xml in JSF??
In JSF How to get string value from xml, .ini and properties file. I want to get string value from xml or text to JSF
Just use the appropriate API's for that. There are enough API's out which can read/parse/write XML, ini and properties files. E.g. JAXP or DOM4J for xml files, INI4J for ini files and Sun's own java.util.Properties for propertiesfiles.
JSF supports properties files as message bundle and resource bundle so that you can use them for error messages and/or localization.
Maybe you are looking for
-
HP ePrint old printer e-mail address
I had to reinstall wireless configuration to my printer and reenable HP ePrint services. That unfortunately also meant new unique printer e-mail address. I am aware that the old e-mail address is obviously locked out for security reasons for 6 months
-
How to put simple labels on pictures
I want to simply label a photo with street names. In my humble opinion, this is something that Mac ought to be able to handle. I am not a graphic design expert and I do not expect to have to learn a lot of graphic design stuff to do that. Pages does
-
Issue with electronic mail address in profile
As a part of the conversion process, one of the electronic mail addresses I use was effectively 'burned in' to my profile. Clearly I can make it visible, or keep it hidden - but there is a problem. The public address I previously had listed for this
-
How we can find all policies for a subject?
Hi Thank you for reading my post how I can find which policies are assigned with a subject ? (What are/is a subject permissions) thanks
-
how do I get an audion book out of my audible library into itunes?