How can I obtain the value of a database column in a JSP variable ?
How can I obtain the value of a table column in a JSP variable?
For example the <jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>
I need to have it in a variable like this:
<% String cnt=<jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>; %>
But it is not workig this way.
Please help me to obtain the value.
I am using JDev RC2.
Thanks.
Try something like
String cnt = c1.getRowSet().getCurrentRow().getAttribute("Cont").toString();
-A
How can I obtain the value of a table column in a JSP variable?
For example the <jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>
I need to have it in a variable like this:
<% String cnt=<jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>; %>
But it is not workig this way.
Please help me to obtain the value.
I am using JDev RC2.
Thanks.
Similar Messages
-
How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
For Example:
SHEET 1
A
B
$50
Dinning Room
$800
Dinning Room
$300
Kitchen
$1,000
Master Bedroom
$100
Dinning Room
SHEET 2
Display the total SUM amount of each Project based on Sheet 1
Project Name
Total Cost
Dinning Room
$950
Kitchen
$300Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
The Guide is available for every user thru the Help menu.
Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
Please :
Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How can I obtain the primary key of a table for an entity relation?
hello everybody
I am doing a consultation to a table in my data base, good this table has alone two fields, the first one is the code or pk and the second one is the description, to be presisos they are names of city and code.
From the beginning!!: This method this one in another class that is a Dialog that is going to call to the class SelecPlace ();
SelecPlace sl = new SelecPlace();
public void capturarLugar(){ // Simple void method in the mentioned class
String place = txtProcedencia.getText() ; // a JTextField
sl.executeStatement(place) ;
}ok, now we see part of the code of the class SelectPlace
public class SelecPlace extends AbstractTableModel{
Connection con = null;
Statement sentencia = null ;
ResultSet rs = null;
ResultSetMetaData rsmd = null ;
String[] nameColum = {} ;
Vector datos = new Vector() ;
public SelecPlace() { }
public void executeStatement(String query){
try{
con = DBManager.getConnection() ;
sentencia = con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,
rs.CONCUR_UPDATABLE) ;
String sql = "select * from Place where descripcion like %"+query+"%'";
rs = sentencia.executeQuery(sql) ;
rsmd = rs.getMetaData();
int nroColumnas = rsmd.getColumnCount() ;
nameColum = new String[nroColumnas] ;
//obtengo los nombres de columnas en cache
for(int colum = 0; colum < nroColumnas; columna++){
nameColum[colum] = rsmd.getColumnLabel(columna + 1) ;
datos = new Vector();
while(rs.next()){
Vector newRow = new Vector();
for(int i = 0; i < getColumnCount(); i++){
newRow.addElement(rs.getObject("place_ID"));
newRow.addElement(rs.getObject("description"));
datos.addElement(nuevaFila);
fireTableChanged(null);
}catch(SQLException e){
System.err.println(e);
e.printStackTrace(System.err);
System.out.println("error in statement");
}catch(ClassNotFoundException cnfe){
System.err.println(cnfe);
}Ok, this code me works and I obtain in this case the field description of the table Place
Now my question is, how can I obtain the primary field of my table?
I need this value of this field that in the base of information in a bigint, and to take it to the first class before mentioned, for that I am working with a data base relatedCertain duffymo and everyone!!, good I give you my scheme:
And generalizing my question, I want to obtain the value of the primary key of a table in the database, I obtain more values of the same row, but I need the primary key, and you see one with the primary key I want to turn a Long and it to insert with code java in foreign clave in another table of the database
Good of this form I believe that it would not be breaking the integrity relacional of the tables -
How can I obtain the coefficients m, b from MAX scale?
I use CWAI ActiveX for acquire data. Also, I use MAX to set the virtual channels for CWAI. When I try to use scale option of MAX (for exemple y = 0.5x + 3 to transforn volts in my phisics values) I obtain true data from ScaledData (phisics values), but I can't obtain true data from (BinaryCodes x GetScaleMultiplyer) + GetScaleOffset. How can I obtain true value from binarycodes?
How can I obtain m and b from ActiveX?drg,
The GetScaleOffset & GetScaleMultiplier refer to the hardware factors used by the driver to transform the binary values produced by the ADC converter to actual Voltage values (not physical units of the Virtual Channel).
The documentation (NI-DAQ 6.9.3) for the ScaleMultiplier property mentions this:
"Returns the slope in the linear scaling formula for converting the binary codes of the analog-digital converter to voltages. The CWAI control multiplies the binary code by the ScaleMultiplier and adds the ScaleOffset to convert a binary code to a voltage.
(BinaryCode * ScaleMultiplier) + ScaleOffset = Voltage"
If the signal range was, for example +/- 5 V, the multiplier for a 12 bit board would be approximately 0.00244141 so that:
2047 * 0.002441
41 = 5V
NOTE: The 12 bit range (4096 words) is divided into +2047 / -2048
Unfortuantely there is not a function or method in the CWDAQ API to obtain or set parameters from the Custom Scales used by the Virtual Channels.
The reason for this is probably due to the fact that once Virtual Channels are created, most users would read in scaled values directly rather than reading binary values, getting the scale constants and applying the custom scale themselves. Since the user specifies the values for the custom scales anyway, the application could as well store the scaling constants as part of its configuration.
Still, it would be nice to have this functionality so I thank you for pointing this out. I will create a suggestion indicating the need for such functions.
The ways to achieve the results you desire are:
1) Use Virtual Channels and read scaled data
or
2) Use the ScaleMultiplier and ScaleConstants to transform binary values into actual voltage values. Once
you obtain the voltage values you can manually apply the same custom linear scale you had created through MAX.
Regards,
Alejandro Asenjo
Applications Engineer
National Instruments -
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 can I pass the value to another frame?
Hi all,
The following is part of my coding of a frame. Once i click on the jButton2, the selected value will be stored into a variable named NAME and the value will be displayed by a label in same frame. At the same time, a new frame named TESTING3 will be set to visible.
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
// TODO add your handling code here:
String name = (String)jList1.getSelectedValue();
jLabel1.setText(name); //display the value in a label in same frame
new testing3().setVisible(true); //a new frame set to visible
} Question: How can I pass the value to TESTING3 frame and display it on that frame?
Thanks,
ning.just make an archive that save that variable and them get them from de clase were you save it
public class sav {
String n;
public sav {
n="";
public void addn(String x){
n=x;
public String shown(){
return n;
and them save it from the frame
sav sun = new sav();
sav.addn(f);
them call it from the other frame
sav sin = new sav();
String s = sin.shown();
label.setText(s);
and i think thats you want to do if its not please explain me better
bye -
How can i pass the value one from to another form?
hi all
how can i pass the value one from to another form with out use it when ever i want to needed this value that ican useit?
like i have two fields U_test1 and U_test2 table name @AUSR
that i have four form A! , A2,A3,A4 please tell me in details....?Hi,
U can assign the values to some variables and access then in ur required forms.
Vasu Natari. -
How can I receive the value of a selected item in the backing bean
I have a table in a jspx file.
When I go to the detail page I want to do something with the value of the currentrow.
I want do a calculaction of the value of ClbId.
How can I receive the value of the selected ClbId in my backing bean
<af:table value="#{bindings.Searchteamlist.collectionModel}"
var="row" rows="#{bindings.Searchteamlist.rangeSize}"
first="#{bindings.Searchteamlist.rangeStart}"
emptyText="#{bindings.Searchteamlist.viewable ? 'No rows yet.' : 'Access Denied.'}"
selectionState="#{bindings.Searchteamlist.collectionModel.selectedRow}"
selectionListener="#{bindings.Searchteamlist.collectionModel.makeCurrent}"
rendered="#{backing_FirstFlag_Club_Club.searchFirstTimeClub_Club_AdresAndereClubs == false}">
<af:column sortProperty="Matricule" sortable="true"
headerText="#{bindings.Searchteamlist.labels.Matricule}">
<af:outputText value="#{row.Matricule}"/>
</af:column>
<af:column sortProperty="ClbId" sortable="true"
headerText="#{bindings.Searchteamlist.labels.ClbId}">
<af:outputText value="#{row.ClbId}">
<f:convertNumber groupingUsed="false"
pattern="#{bindings.Searchteamlist.formats.ClbId}"/>
</af:outputText>
</af:column>
<af:column sortProperty="Nom" sortable="true"
headerText="#{bindings.Searchteamlist.labels.Nom}">
<af:outputText value="#{row.Nom}"/>
</af:column>
<f:facet name="selection">
<af:tableSelectOne text="Select and">
<af:commandButton text="Submit"
action="club_AdresAndereClubsDetail">
<af:setActionListener from="#{row}"
to="#{processScope.row}"/>
</af:commandButton>
</af:tableSelectOne>
</f:facet>
</af:table>hi tde
Using an Expression Language helper class like this one from Steve Muench ...
http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
... you could write something like this in your backing bean:
Integer vClbId = (Integer)EL.get("#{row.ClbId}");(Make sure to cast it to the correct type.)
success
Jan Vervecken -
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 -
Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?
Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
The current release of Acrobat (XI) is compatible in Windows 7.
Be well... -
Hi, I would like to know how can i break the value for a row and column once i have converted the image to the array. I wanted to make some modification on the element of the array at a certain position. how can i do that?
At the moment (as per attachhment), the value of the new row and column will be inserted by the user. But now, I want to do some coding that will automatically insert the new value of the row and the column ( I will use the formula node for the programming). But the question now, I don't know how to split the row and the column. Is it the value of i in the 'for loop'? I've tried to link the 'i' to the input of the 'replace subset array icon' , but i'm unable to do it as i got some error.
Please help me!
For your information, I'm using LABView 7.0.Hi,
Thanks for your reply.Sorry for the confusion.
I manage to change the array element by changing the row and column value. But, what i want is to allow the program to change the array element at a specified row and column value, where the new value is generated automatically by the program.
Atatched is the diagram. I've detailed out the program . you may refer to the comments in the formula node. There are 2 arrays going into the loop. If a >3, then the program will switch to b, where if b =0, then the program will check on the value of the next element which is in the same row with b but in the next column. But if b =45, another set of checking will be done at a dufferent value of row and column.
I hope that I have made the problem clear. Sorry if it is still confusing.
Hope you can help me. Thank you!!!!
Attachments:
arrayrowncolumn2.JPG 64 KB -
I lost my seriel number for PS Elements 11 following computer crash. Os is W7
Peter Jones Aug 27, 2014 5:36 AM
Hi,
I lost my serial number for PS Elements 11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope
How can I obtain the serial number please?
ThanksIf you registered the software you should be able to find the serial number thru your Adobe account online.
To locate the serial number:
http://helpx.adobe.com/x-productkb/global/find-serial-number.html -
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 can I set the value to a session bean from backing bean
Hi Experts,
How can I set the value to a session bean from backing bean where I have created getter and setter
methods for that variable.
Basically I am using ADFUtils class where I am able to get the value from session bean
using following expression
String claimType =
(String)ADFUtil.invokeEL("#{ClaimValueObj.getClaimType}");
Thanks
GayazGayaz,
Wrong Post !!
Post in JDeveloper and ADF
Thanks
--Anil -
How can i find the value category code in CJVC
Hi Gurus
how can i find the value category code in CJVC and which tables its stored.can any one tell me.please pleaseRead TPIK3 in an internal table, then search COEP-KSTAR in this table, with KSTAR between TPIK3-KSTRF and TPIK3-KSTRT, and other keys like Controlling Area and application/component (eg "PS" in project-system as in CJVC or "PM" in Maintenance as in IW33, multiple application use this table). You can also use a FM like PS_FIND_ACPOS_FOR_KSTAR.
Regards,
Raymond
Maybe you are looking for
-
Change the column width on the fly
Dear all, I have a problem, i have a matrix report, the row is "the project name" and the column is "the items" using within each project, and the problem is the items are variable from time to time the report run for each project, so its exceeds the
-
Handling Null element in Data Template
Hi experts , I am facing an issue, include_null_Element is not working properly. Find the sample code below and please help me out with your suggestion. Since my data template file is big i pasting less amount Data template file:- <?xml version="1.0"
-
The "Recently Used" entry in the file open/save dialog
The file selection dialog (eg: save/open/etc) on gtk applications has a "Recently Used" option: Over size imaged reduced to link This has generally not shown any options for me (for some reason, firefox suddenly showed a single entry this time). I fi
-
Drill Down In Excel like in web
Hi Friends Can we have drill down facility in input scheule in Excel like wise in Web? For Eg: If i have 3 levels: Initially Input schedule (Excel) need to display 1st level items next i click then need to drill down and final base members will be in
-
Lately, Mail is slow slow slow. When I click on 'get mail', the wheel spins and spins. Eventually one of these things happens: -I get a message saying I'm 'offline' -I get a message saying something can't connect to some sort of smtp server -it spins