How do i get source value in netui:image tag at runtime ?
Hi i am trying to get the src value in netui:image at runtime. is this possible?
<pt:getSetting id="imgServer" type="gateway" settingName="<%= GS.PT_IMAGESERVER_URI %>"/>
<pt:getSetting id="imgBaseDir" type="admin" settingName="imageDirectory" />
<%
String imgPath = imgServer + imgBaseDir;
%>
<netui:image src="<%=imgPath%>/welcomelogo.gif" onClick="submit()"></netui:image>
here i am not able to get the src value.
Any idea on this ?
Thanks,
marsha
Marsha,
Replase the double quotes " by single '. Here is an example:
<netui:image
src ='<%=request.getContextPath()
+ "/resources/down.gif"%>'
/>
Ariel
Similar Messages
-
Hi,
I have the following urgent problem.
I created a pageflow which uses a form bean (created with a db control) to insert
values in a table. I overcame the disability to insert date values in the table
by converting this columns to string values in the table. But now I have to insert
a sysdate in a column that holds the row sampled date. How is it possible? I used
javascript without an success.
Code in jsp:
document[getNetuiTagName("myForm",this)][getNetuiTagName("date",this)].value=new
Date();(have used string values too)
<netui:hidden dataSource="{actionForm.sampled}" tagId="date"/>
Code in .jcx file
<xsd:element name="SAMPLED" type="xsd:dateTime" wld:JDBCType="DATE" minOccurs="0"
wld:TableName="theTable" nillable="true">
* </xsd:element>
Code in .jpf file
* <pageflow-object id="formbeanprop:portlets.Career.Submit_CV.Submit_CVController.DatabaseForm#sampled#java.sql.Timestamp"/>
public static class DatabaseForm extends RowSetForm
public java.sql.Timestamp getSampled()
return sampled;
public void setSampled(java.sql.Timestamp newOne)
registerChange("sampled");
this.sampled = newOne;
I have tried to use java.sql.Date too...
Any help would be very appreciated.
Thx,
VincentHi,
Hope You're using the template.fmb.
If your Custom Form is in INV module, use 'FND_ORG.CHOOSE_ORG;' in the pre-form.
Else Set the org id dynamically,
begin
MO_GLOBAL.SET_POLICY_CONTEXT(ACCESS_MODE,ORG_ID);
end;
Example:
begin
MO_GLOBAL.SET_POLICY_CONTEXT('S',101);
end;
S - Denotes that the current session will work for Single Org_id (101)
M - Denotes that the current session will work for Multiple Org_id
Thanks -
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
How can I get command values from a VI executed by reference ? NEWBIE
Hi,
I'm running a sub-vi in a "Secondary Front Face" (excuse for the
translation if not correct, I'm working on a French version). In order
to run this VI, I pass a reference. All is working fine but I don't
know how can I get the values entered by the user in this VI ?
Actually I run a main VI wich contains a "Secondary Front Face" (this
SFF is contained in a tabbed pane). In my diagramm, I pass a reference
to another VI (by the name of the file *.vi). If my user enter a word
in a text field, I would like to be able to get it in my main app.
Thanks for your help.Hello,
You might take a look at the following tutorial for more information about calling a VI by reference. It's got some great visuals and examples.
Tutorial: Calling a VI by Reference
You might also consider just calling the secondary VI as a simple subVI, if you can spare the memory space when loading the main application, as this is the easiest way to input and output VI values.
I hope this helps! Please let me know if I can be of any further assistance.
Liz F
National Instruments -
Please, How do i get the values from a h:selectManyCheckbox ?
How do i get the values (selected or not) of a <h:selectManyCheckbox> tag and show them .For instance
i have the folowing options :
<h:selectManyCheckbox
id="cartas"
layout="pageDirection"
value="#{store.cartas}">
<f:selectItems
value="#{cartas}"/>
</h:selectManyCheckbox>
<h:message styleClass="validationMessage" for="newsletters"/>with my faces-config.xml:
<managed-bean>
<description></description>
<managed-bean-name>cartas</managed-bean-name>
<managed-bean-class>java.util.ArrayList</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<list-entries>
<value-class>javax.faces.model.SelectItem</value-class>
<value>#{cartas0}</value>
<value>#{cartas1}</value>
<value>#{cartas2}</value>
<value>#{cartas3}</value>
</list-entries>
</managed-bean>
<managed-bean>
<managed-bean-name>cartas0</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>Semanal</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>200</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>cartas1</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>As bruxas</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>201</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>cartas2</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>Exercise</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>202</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>cartas3</managed-bean-name>
<managed-bean-class>javax.faces.model.SelectItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>Gusman Park</value>
</managed-property>
<managed-property>
<property-name>value</property-name>
<value>203</value>
</managed-property>
</managed-bean>Thanks for the atention!! All the best!!Hi,
In your backing bean you will need to add a new variable to bind your control to, I think this variable needs to be of teh "HtmlSelectManyCheckbox" type. The on your jsp page you can add binding="#{myBean.myVariable}".
When you want to get the values of the selectMany in your backing bean, you can call the getSelectedValues() function on your HtmlSelectManyCheckbox variable.
in backing bean:
private HtmlSelectManyCheckbox hsmc;
public HtmlSelectManyCheckbox getHsmc(){
return hsmc;
public void setHsmc(HtmlSelectManyCheckbox hsmc){
this.hsmc = hsmc;
public void someFunction(){
Object[] obs = hsmc.getSelectedValues();
}On jsp page:
<h:selectManyCheckbox
id="cartas"
layout="pageDirection"
value="#{store.cartas}"
binding="#(myBean.hsmc}">
<f:selectItems
value="#{cartas}"/>
</h:selectManyCheckbox> -
How we can get the values from one screen to another screen?
hi guru's.
how we can get the values from one screen to another screen?
we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
regards.
satheesh.Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).
-
How do I get the values from a form?
How do I get the values from a form?
You can try using request method..
request.getParameter("yourFormInputName");
Try this. -
How do i get the value in a variable that I don't know the name of til run
I have a record type( pr_team) defined in a package - anchored to a table.
I want to be able to go through each of the fields in it one at a time. I get the list of fields from the table definition from cursor as follows
CURSOR c_fields IS
SELECT column_name
FROM all_tab_cols
WHERE owner = 'CDS'
AND table_name = 'TEAM';
r_fields c_fields%ROWTYPE;
So first returned value is team_id
how can I get this value when all I know the field name is 'pr_team.' || r_fields.column_name
cheers
SimonOracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE PACKAGE package_name
2 AS
3 r_emp emp%ROWTYPE;
4 END package_name;
5 /
Package created.
SQL> SET SERVEROUTPUT ON SIZE UNLIMITED;
SQL> DECLARE
2 v_empno emp.empno%TYPE;
3 v_ename emp.ename%TYPE;
4 BEGIN
5 SELECT *
6 INTO package_name.r_emp
7 FROM emp
8 WHERE ROWNUM = 1;
9
10 EXECUTE IMMEDIATE
11 'BEGIN ' ||
12 ' :v_empno := package_name.r_emp.empno; ' ||
13 ' :v_ename := package_name.r_emp.ename; ' ||
14 'END;'
15 USING OUT v_empno, OUT v_ename;
16
17 DBMS_OUTPUT.PUT_LINE ('v_empno => ' || v_empno);
18 DBMS_OUTPUT.PUT_LINE ('v_ename => ' || v_ename);
19 END;
20 /
v_empno => 7369
v_ename => SMITH
PL/SQL procedure successfully completed.
SQL> -
How can I get the value of "Warehose" column in a form
How can I get the value of "Warehouse" column in the form below (I mean what table that contain this value):
Production Supervisor >> Batches >> (Button) Material Details >> (Button) Line Allocations
Well, for more clearly! My problem is I must have the Unit Cost of Items, so I've got it in the cm_cmpt_dtl (table), but if I want to, I must create a relation that require 2 filed, they're Item_ID and Whse_Code.
There's no problem with Item_ID, but Whse_Code seem to be the Mission Impossible (hix, I hate that film!!!!)
I wonder if It was right to post this topic here. But anyway I just post my question here, hope I could get some help.wow, many, many, many.... and many thanks!
Just add a tiny modify to check out the Batch_type
doc_id = (select batch_id from gme_batch_header where batch_no='&batch_number' and batch_type = 0)
Because the batch_no can be duplicated as we also create Batch and Filrm Planned Order.
Many thanks for your support!
P/S: Sorry for my terrible English :P -
How to add get Day value in a Date object?
Hi,
I am writing a sql statement that has two date values. One I am getting it from the database. The format in the database is MM/DD/YYYY. My first question is how do I convert the format into the java date format, YYYY-MM-DD. The second question is I need to find out what the day is and add 1 to it. How do I get Day value in a Date object?
Thanks.Look at "SimpleDateFormat" and "parse" in the archives.
-
How do you get the value of a selected list item?
I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing wrong.
Thanks!Hi,
You can use an WHEN-LIST-CHANGED trigger, attached to the list-item itself. And, in this trigger, you can use the name of the item to refer its value.
For example:
:block_name.list_item_name
John -
How can we get the value of the key field in a custom data model using governance API?
Dear Team,
How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
Any kind of help would be sincerely appreciated.
Thanks & Regards,
Tushar.Hi Michael,
Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
This is a workaround for now.
So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
Can we do that using governance API and its' methods?
In the Governance API doc you provided below has referring to below external model as part of gevernance API.
The active or inactive data (before or during the derivation or the check) can be read
with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
parameter should b
e set to ‘X’.
Thanks
Praveen -
How can i get the value stored in the session object using its sessionid
how can i get the value stored in the session object using its sessionid by running stand alone java application
myforum wrote:
how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing. -
How do i get probative-value off my laptop
How do i get probative-value.sydneyflooring.info off my laptop?
Try this?
* http://www.alot.com/faq
*http://www.alot.com/toolbar
* http://www.pchell.com/support/alot.shtml
Firefox v
* getfirefox.com -
How do i get the value of that field
in JSP i have a field like below..
<input type="hidden" id="grpId<%=Index%>" value="<bean:write name='GrpList' property='groupId'/>"/>
In Action class , how do i get the value of that field (i.e id) ?
String value =reques.getparameter (//what ??);i dont want to change the jsp.
concern is , as the name of the id is dynamic .....so can i get the value in the Action class ?
is there any trick exists ?
I will try not to change any jsp code but will do changes in Action class
Message was edited by:
Unknown_Citizen
Maybe you are looking for
-
Ok, I have a question concerning copright. Do I have to put a copyright symbol on every image I use- I'm refering to photos of paintings here. What is to stop readers of the ibook from using my images? They are all my own photos.
-
Weblogic ConfigurationException Error
Hello, I have a big problem My System is OS : Windows 2000 Server EJB Server : Weblogic 5.1.0 and SP5 JDK1.2.2 My Configuration is C:\weblogic\bin>wlconfig WebLogic startup settings are presently: CLASSPATH Prefix d:\java\jdk122\lib\db.jar;d:\java\jd
-
Standalone Java client - Dynamic SAML is it possible
Hi, We have the following working web service client using (Java 1.6). Can this be done using axis2 1.3, Java 1.4 stack? I have tried without success. Any help is appreciated. Thank you, package gov.fda.ora.marcs; import java.security.cert.X509Certif
-
Not recognizing my external drives
I've got two 1T Fantom drives connected via USB. No problems with them in 10.5. Snow Leopard thinks they are corrupted and wont mount them. What can I do, short of formatting. I tried disk utility verify and repair and that failed. Also, if I were to
-
Hi... I have macbookpro 17". I bought it brand new almost 2 years ago. I had upgraded to mountain lion last week and since this week, I get a bright yellow screen for about a second every time I restart my system. Is this a warning of some sort?