How can i set some values to adf table(non bound to database)?
hi
i want to display some datas to an empty adf table on click of a button?
My jdev version is 11.1.2.2
Thanxxx
There are a couple of ways of displaying data in an adf table if its not bound to a database.
1. You can create a programmatic view object and populate it at run time(i.e. click of a button) and display the view object as a table.
2. You can create a list of POJO objects and populate your adf table programmatically.
By the way from where are you getting the data. Can you explain your use case a little more?
Hope it helps.
Umesh
Similar Messages
-
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 set a value of column in SSIS by using Replace
How can I set a value of a column in SSIS using a Replace in Derive columns. I have here NameCode and I need to Set = 1 Where NameCode like LIKE '____99____'
eg. 1006993010... if 5th and 6th characters are 99
Else 0
Hope to hear from someone soon and I appreciate great help here.If NameCode column is integer then you have to cast it correctly to String.
I am adding that to the expression provided by Rajen.
SUBSTRING((DT_WSTR,20)ProductCode,5,2) == "99" ? 1 : 0
-Vaibhav Chaudhari -
How can I set default values for Allocate Mode in AO config?
Hi, How can I set default values for allocate mode in AO config. To be specific, in the attached vi, I need to set the Allocate Mode in AO Config to 'Use FIFO Memory (6)' if the value inside my case structure is false and to 'no change (0)' if the value inside the case strusture is true.
Solved!
Go to Solution.
Attachments:
generateWaveformFIFO.vi 15 KBCreate two constants for the Allocate Mode input (right click > create > constant). Place one in the true case of the case structure, and place the other one in the false case. Wire them to the same tunnel (border of the case structure), then wire the tunnel to the Allocate Mode terminal of the AO Config. I don't have Traditional DAQ installed, but that should do it.
Misha -
How can i Set ArrayList values to selectOneListbox
Please Let me know How can i Set ArrayList values to selectOneListbox dynamically from the managed bean
Note: beanList is a list of selectItems
ArrayList<SelectItem> beanList; -
How can we set icon to a tree table
Hi ADF Experts,
The below is regarding skinning of af:tree table component.
How can we set icon to a tree table
Below is the af:tree component. When I run the application I see all the parent and child nodes as folder icon. My question is how can set a file icon to the elements present inside a parent node.
<af:treeTable value="#{pageFlowScope.MerchandizeTreeModel.productTreeModel}"
id="tt1" var="row"
rowSelection="multiple"
horizontalGridVisible="false"
verticalGridVisible="false">
<f:facet name="nodeStamp">
<af:column sortable="false" headerText=""
rowHeader="true" id="c11" width="200">
<af:panelGroupLayout id="pgl0">
<af:image source="/images/folder.png" shortDesc="foldericon"
id="i1"/>
<af:outputText value="#{row.groceryItems}" id="ot11"/>
</af:panelGroupLayout>
</af:column>
</f:facet>
</af:treeTable>
Thanks in advance,
AnimeshHi Experts,
I am having a tree table component in adf. I have set a folder image for the parent node. How can we set a document image for contents inside a parent node.
Thanks,
Biswa -
How can i pass calculated value to internal table
Hi
i have to pass calculated value into internal table
below field are coming from database view and i' m passing view data into iznew1
fields of iznew1
LIFNR LIKE EKKO-LIFNR,
EBELN LIKE EKKO-EBELN,
VGABE LIKE EKBE-VGABE,
EBELP LIKE EKBE-EBELP,
BELNR LIKE EKBE-BELNR,
MATNR LIKE EKPO-MATNR,
TXZ01 LIKE EKPO-TXZ01,
PS_PSP_PNR LIKE EKKN-PS_PSP_PNR,
KOSTL LIKE EKKN-KOSTL,
NAME1 LIKE LFA1-NAME1,
NAME2 LIKE LFA1-NAME2,
WERKS LIKE EKPO-WERKS,
NETWR LIKE EKPO-NETWR,
KNUMV LIKE EKKO-KNUMV,
GJAHR LIKE EKBE-GJAHR,
and now i want to pass
one field ED1 which i has calculated separatly and i want to pass this value into iznew1
but error is coming that iznew1 is a table with out header line has no component like ED1.
so how can i pass calculated value to internal table iznew1,When you declare your internal table , make an addtion occurs 0
eg . data : begin of iznew occurs 0 ,
fields ...
add the field here ed1.
end of iznew.
now when you are calculating the value of ed1,
you can pass the corresponding value of ed1 and modify table iznew.
eg
loop at iznew.
iznew-ed1 = ed1.
modify iznew.
endloop. -
How can i convert the data from mutiple-table to the other database(MSSQL)?
Dears,
How can i convert the data from mutiple-table to the other database such as MS-SQL?
I have a third party system based on MS-SQL 2000.
Now we want to make a integration between SAP R/3(Oracle) and SQL server.
When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
But i don't know which tools will help me reach the purpose. BAPI, LSMW, IDoc... ???
Would anybody tell me which way is better and how to do?
Thanks a lot!
Kevin WangHello Kevin,
The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier. -
How can I set a value in a field before create when a New button is clicked
Hi,
I am using
JDeveloper 10.1.3.1.0.3984 and
JHeadstart 10.1.3.1 release 10.1.3.1.26
I have one group and there is a detail group under that group.
From main group to detail group there are 3 field relating those groups.
field1
field2
fieldSEQ (auto-generated by database trigger)
These 3 fields are PK.
In the detail group, there is a New button. So, when the New button is clicked, it tries to create the record with those 3 fields value as those are coming from main group. As a result it's giving the duplicate error as that record already exists in the table.
But I don't want to create the record with that SEQ as that will be created in the trigger.
How can I set the SEQ temporarily any no. (-1) before create when the New button is clicked?
Can anybody help?
Thanks
Syed Jabbar
University of Windsor
Windsor, ON, CanadaHello Syad,
What I would suggest is setting the sequence number at the creation of the entity object (so in the create() method) by using the database sequence. This way it will always be unique.
So something like:
protected void create(AttributeList AttributeList) {
super.create(AttributeList);
SequenceImpl sequence =
new SequenceImpl("KCP_SEQ", getDBTransaction());
setFieldSeq( sequence.getSequenceNumber());
If this still does not solve it: please go to the ADF Forum since this problem is an ADF problem, not a JHeadstart problem.
Regards,
Evert-Jan de Bruin
JHeadstart Team. -
How to get edited row values from ADF table?
JDev 11.
I have a table which is populated with data from Bean.
I need to save changes after user make changes in any table cell. InputText is defined for table column component.
I have defined ValueChangeListener for inputText field and AutoSubmit=true. So when user change value in inputText field, method is called:
public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
getSelectedRow();
SaveMaterial(material);
This method should call getSelectedRow which take values from selected table row and save them into object:
private Row getSelectedRow(){
RichTable table = this.getMaterialTable();
Iterator selection = table.getSelectedRowKeys().iterator();
while (selection.hasNext())
Object key = selection.next();
table.setRowKey(key);
Object o = table.getRowData();
material = (MATERIAL) o;
System.out.println("Selected Material Desc = "+material.getEnumb());
return null;
Problem is that getSelectedRow method doesnt get new (edited) values, old values are still used.
I have tried to use ActiveButton with same method and it works fine in that case. New values are selected from active row and inserted into object.
JSF:
<af:table var="row" rowSelection="single" columnSelection="single"
value="#{ManageWO.material}" binding="#{ManageWO.materialTable}">
<af:column sortable="false" headerText="E-number">
<af:inputText value="#{row.enumb}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
</af:column>
<af:column sortable="false" headerText="Description">
<af:inputText value="#{row.desc}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
</af:column>
</af:table>
<af:activeCommandToolbarButton text="Save" action="#{ManageWO.EditData}"/>
What is a correct place from where save method should be called to get new (edited) values from ADF table?
Thanks.Did you look into the valueChangeEvent?
It has oldValue and newValue attributes.
public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
Object oldVal = valueChangeEvent.getOldValue();
Object newVal = valueChangeEvent.getNewValue();
// check if you see what you are looking for.....
getSelectedRow();
SaveMaterial(material);
}Timo -
How can I set default value to a transient parameter in the VO
I have created a transient parameter in the VO, which is type of boolean.
When I try to input the "true" or "True" or "Y" in the 'default value',
and then running the programm, but all failure.
so I don't know how can i do.
Genuinely waiting for you help, thanks in advance.Hi Sumury,
First of all you could check if this transient attribute is read only. to check this, edit the VO and select the transient attribute under the Attributes tab. Then verify if it is marked as "Updateable Always" on the right-hand section.
If it is updateable, then try setting the default value on the VO Implementation class: open the xxxVOImpl class, go to the transient attribute's setter (setxxx()) and change it to:
<code> if (getXXX() == null) setAttributeInternal(XXX, "Y");
else setAttributeInternal(XXX, value);</code>
This might work. If it does not, then please post the exact message you are receiving when running the app.
Hope this helps!
Thiago -
How can we change some value in OSB at runtime as Preferences in BPEL
Hi all,
What is the approach we have to use in OSB to implement Preferences ( where i can change value at run time without deploying again ) like in BPEL.
Thanks
PhaniThanks for the replay . I know they used for different purpose.i want to know how can we change anything in OSB at run time without redeploying the process again.
simple scenario :
Lets say i have a option in BPEL to change the Username/password if i set as Partner link parameters from BPEL Console . no need to redeploy the BPEL process .
if i invoke the same service from OSB how can change the username/password without redeploying the OSB project.
Thanks
Phani -
How can i set the values to text box by selecting from drop down list.
hi ,
i am using struts and jsps. i have a dropdown list of names(getting the values of names from database), i want to get address and phone number of that selected one.how can i get that?Hi swarupa,
Well My advice in this senario wud Be
Either U can make Use of XmlHttp Object through javascript(AJAX way).
Or U need to Maintain the State of the entire form and then refresh the page to get those results....
just for U r reference i am attaching a link which was programmed using ASP @ server side and which made use of XmlHttp Object.....
http://www.w3schools.com/ajax/ajax_database.asp
Just try to simulate the samething in your own way....
REGARDS,
RAHUL -
How can we set default value within html:file
Hai,
To set default value to text box i use the following code. It works well.
<html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
<html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?Hi,
guess that one option in a RowImpl would be to check if the attribute is null or if the attribute value can be found in the VO that populates the list. If first is true or seconds false (cannot be found) you return the first value of the VO, making it the current attribute value
Frank -
How can I set a value to an Object Array
I am declaring an object variable like this:
final Object[][] data = {
{"Mary", new Integer(5)},
{"Alison", new Integer(3)},
{"Kathy", new Integer(2)},
{"Sharon", new Integer(20)},
{"Angela", new Integer(4)}
And I would like to declare it like this:
final Object[][] data = new Object [6][3];
But the matter is that when I try to set a value like this:
data[0][0] = "Hola";
I got the next Errors.
TableEditDemo.java:95: ']' expected
data[r][c] = "Hola";
^
TableEditDemo.java:95: <identifier> expected
data[r][c] = "Hola";
^
TableEditDemo.java:95: cannot resolve symbol
symbol : class data
location: class TableEditDemo.MyTableModel
data[r][c] = "Hola";
^
3 errors
Could Somebody Help me please???? Thank you very much.I don't see problem for your declaration. Is it possible you forgot to cast data back to whatever class?
PC
Maybe you are looking for
-
I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with V
-
Component labels not rendering correctly after applying fusion skin
Hi I have been using ADF 11g with blaf-plus-rich skin. Recently I upgraded to 11g R1 Patch Set 1 . I applied the new fusion skin and after that labels on the components are not appearing in the right color. They are appearing in white color as the ba
-
Stroke around text boxes??
Is is possible to give text boxes a stroke?? I am creating a announcement sheet and the previous way they did it was in publisher where they had a background and then a filled text box with a stroke around each one. Thanks, Cory G4 Mac OS X (10.4.7
-
Hi friends, I am working with a Stasndard FI Report RFKOPR00,Right now In this report,data is not getting diplayed profitcenter wise.hence user wants me add profit center in selection-screen and sort the output, it is a simple classical report,by p
-
I have recently not been able to use my iLife products, in iWeb the tab at the top appears and the Inspector appears but the main window does not appear. in iMovie the movie files have been lost, i dont know what to do at all