Insert an HTML Table tag as a value in a Tree Table
Hi helper,
Can I insert an HTML Table tag inside a TreeTable (Hierarchical data) using AdvancedDataGrid as a value?
I need to create a Tree table in flex and I have beside normal int values some cells that need to show a certain images in an HTML Table I will create.
Is it possible?
Please advice
Thanks
Jo
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>It depends on where you get the list of images<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Yossi Bar<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 1:14 AM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: Insert an HTML Table tag as a value in a Tree Table<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Yossi Bar in <br><br /><br><br /><b>Developers</b> --<br><br /> Insert an HTML Table tag as a value in a Tree Table<br><br /><br><br />Thanks Alex, <br><br />What is the way to implement HorizontalLIst of images for<br />AdvancedDataGridColumn? <br><br /><br><br />In the code here I create a tree table and in Actual column I show an image: <br><br /><br><br /><mx:AdvancedDataGrid width="100%" height="100%"<br />folderClosedIcon="{null}" folderOpenIcon="{null}"<br />defaultLeafIcon="{null}"> <br><br /><br><br /><mx:dataProvider> <br><br /> <mx:HierarchicalData<br />source="{dpHierarchy}"/> <br><br /> </mx:dataProvider> <br><br /> <mx:groupedColumns> <br><br /> <mx:AdvancedDataGridColumn<br />headerText="" width="50"/> <br><br /> <mx:AdvancedDataGridColumn<br />dataField="Region" backgroundColor="haloSilver"<br />headerText="Region title"<br />headerRenderer="mx.controls.Label"/> <br><br /> <mx:AdvancedDataGridColumnGroup<br />headerText="Group Header"<br />headerRenderer="mx.controls.Label"> <br><br /><mx:AdvancedDataGridColumn dataField="Territory_Rep"<br />headerText="Territory Rep"<br />headerRenderer="mx.controls.Label"/> <br><br /><mx:AdvancedDataGridColumn dataField="Actual"<br />headerText="Actual title"<br />headerRenderer="mx.controls.Label"> <br><br /><mx:itemRenderer> <br><br /><mx:Component> <br><br /><mx:VBox horizontalAlign="center"> <br><br /><mx:Image width="50" source="{data.Actual}"/> <br><br /></mx:VBox> <br><br /></mx:Component> <br><br /></mx:itemRenderer> <br><br /></mx:AdvancedDataGridColumn> <br><br /><br><br /><mx:AdvancedDataGridColumn dataField="Estimate"<br />headerText="Estimate title" headerRenderer="mx.controls.Label"/><br /><br><br /> </mx:AdvancedDataGridColumnGroup><br /><br><br /> </mx:groupedColumns> <br><br /> </mx:AdvancedDataGrid> <br><br /><br><br />Please advise, <br><br /><br><br />Thanks <br><br /><br><br />Jo <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d1ae/2">Insert an HTML Table tag<br />as a value in a Tree Table</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d1ae!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>
Similar Messages
-
UIX table tag's attribute VALUE is missing in jdev 10g production
In JDeveloper 10g preview, I handled my table's navigation manually and need to set the table's tag attribute VALUE in order to keep the record range.
However, when i convert my project to JDeveloper 10g Production, eventhought the page is still working fine, but in the design windows will show that the uix page is in invalid state and I found that the attribute VALUE is no more supported.
Could anyone please help me and let me know how do i set back my record range? Thanks!It turns out that you're running into a bug that will be fixed in the soon to be released version of JDev 10g. The good news is that it's a design time bug, so your pages will still work at runtime. You can even fix the bug yourself if you want. In JDEV_HOME\jlib there is uix2-schemas.zip. Inside of that is ui/table.xsd.
Add the below attribute definition inside of the complex type for the table, and you should be all set.
<attribute name="value" type="ui:unsignedIntExpressionType" default="1"/>
Hope this helps,
Ryan Pollock
UIX Team -
How can I apply new attributes to a table-Tag in an JEditorPane?
I'm using a JEditorPane as a base for a small HTML-Editor. The manipulating of the attributes of an image-tag such as href works fine. But now I want to add the width-attribute to an table-tag.
The result: Nothing in the table-tag, but other strange things (width is set to any TD oder in every cell a new table is added.
How can I do this? Any suggestions??
Thanks.Did you ever solve this problem?
I can manipulte the <p> tags and character styles, but the manipulation of <td>, <div> and other standard tags I cannot figure out.
Please let us know, [email protected]
By the way:
If you have only a width tag in your images, does it resize proportionaly, as in a normal browser or is the height taken from the original picture, as it happens with me?
This is quite nasty, since I do not know the original picture sizes. -
Hi
When I have a yellow highlighted table tag, indicating there
is not a close table tag, I can never figure out where to add the
closing table tag. Is there a handy helper tool to help you know
how to fix a yellow highlight of an open table tag in the code?
Thank you in advance!
LauraI don't know of any shortcut. Just sight reading the code
looking for
missing or duplicate tag.
a note- with table problems, it usually isn't the first
highlighted tag
that's the problem. It's an error farther down in the code
that makes the
first tag invalid with the current way the code is. And that
other error is
frequently not highlighted.
just scan through looking for missing or duplicate tr td /td
/tr tags and
see that they are in the right order.
is this legacy code from some other editor, or current newly
produced pages?
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
How to use tree tables with CRUD operation for begineers ADF 11g
This is Friday night call for help.
This is only few sample ressources on the web for tree table and only one with CRUD operation.
I used this one http://jobinesh.blogspot.com/2010/05/crud-operations-on-tree-table.html because this is the only one that address CRUD.
And it is shaky. Deletion works fine but insertion not very well. This is working using custom code provided below.
Depending if the user selection in the tree, the code insert from the master node to the children node.
Any other options because it is not working well.
Also where Oracle describes how to use the row, rowset, itorator API? This is really hard to understand like almost if we should not use it.
then if not how can I insert in tree with two nodes and insert in the parent or children depending the users selection.
Lately I 'been posting questions on this forum with no response. This hurts. I understand developers cannot spend their time on this but People from Oracle, please help. We pay licenses...
public void createChildren(RowIterator ri, Key selectedNodeKey) {
final String deptViewDefName = "model.DepartmentsView";
final String empViewDefName = "model.EmployeesView";
if (ri != null && selectedNodeKey != null) {
Row last = ri.last();
Key lastRowKey = last.getKey();
// if the select row is not the last row in the row iterator...
Row[] found = ri.findByKey(selectedNodeKey, 1);
if (found != null && found.length == 1) {
Row foundRow = found[0];
String nodeDefname =
foundRow.getStructureDef().getDefFullName();
if (nodeDefname.equals(deptViewDefName)) {
RowSet parents =
(RowSet)foundRow.getAttribute("EmployeesView");
Row childrow = parents.createRow();
parents.insertRow(childrow);
} else {
RowSet parents =
(RowSet)foundRow.getAttribute("EmployeesView");
Row childrow = parents.createRow();
childrow.setAttribute("DepartmentId",
foundRow.getAttribute("DepartmentId"));
parents.insertRow(childrow);
} else {
System.out.println("Node not Found for " + selectedNodeKey);
}I am looking for a sample that describe how to design a jsf page with a tree table.
So you have Department and employees. In the tree first comes Department and if you click the node you see the employees assigned to this department.
I need to be able to insert a new department or a new employee from the tree table by clicking on a insert button in the panel collection toolbar depending on user selection in the tree.
I got part of it working but not good enough.
By problem is the get insertion working
I have a createChildren method in my AM implementation that get in input a RowIterator and selected node key.
To goal is to create new records depending of the user selection and the input parameters get populated by the binding like this:
#{backing_treeSampleBean.selectedNodeRowIterator} #{backing_TreeSampleBean.selectedNodeRowkey} via method binding with parameters.
Is it the right approach?
First to be able to insert a parent record, I select nothing in the tree and ri and selectedNodeKey comes to null
we run this code
ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
//ViewObjectImpl vo = getDepartmentsView1();
Row foundRow = vo.first();
Row childrow = vo.createRow();
vo.insertRow(childrow);
A new blank entry appears in the parent node and we enter a value.
The the problem starts when we want to add a child to this parent.
We select the created parent and press the insert button, this code get executed
if (nodeDefname.equals(deptViewDefName))
//list of the children of the parent and create an new row
RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
Row childrow = childRows.createRow();
childRows.insertRow(childrow);
But the new entry does not appear, it is almost like it would be created for a different parent because this is a mandatory field that is not feel in yet and the interface complaints of a missing value. It is created somewhere just not a the right place... This is my guess.
Do you see something wrong with the code?
The full code og my create children method is there below
I am using jdeveloper 11.1.1.3.0 any issues with tree table to know about with this version?
Thanks for your help
public void createChildren(RowIterator ri, Key selectedNodeKey) {
final String deptViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidaySchedExceptionsView";
final String empViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidayExceptionDatesView";
if (ri != null && selectedNodeKey != null) {
// last row
Row last = ri.last();
Key lastRowKey = last.getKey();
// if the select row is not the last row in the row iterator...
Row[] found = ri.findByKey(selectedNodeKey, 1);
if (found != null && found.length == 1) {
// foundRow is the row selected
Row foundRow = found[0];
// The row selected can be the parent node or the child node
String nodeDefname = foundRow.getStructureDef().getDefFullName();
// if parent row
if (nodeDefname.equals(deptViewDefName))
//list of the children of the parent and create an new row
//works but we try to resolve the creation of a parent
RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
Row childrow = childRows.createRow();
//childrow.setAttribute("HolidayDate", new java.util.Date().getDate());
System.out.println("insert child row from master");
childRows.insertRow(childrow);
} else
//RowSet ParentRow = (RowSet)foundRow.getAttribute("SchHolidaySchedExceptionsView");
//RowSet childRows = (RowSet)ParentRow.first().getAttribute("SchHolidayExceptionDatesView");
Row childrow = ri.createRow();
System.out.println("insert child row from child ");
} else {
System.out.println("Node not Found for " + selectedNodeKey);
} else {
System.out.println(" param null try creating for first row : " +
ri + " * " + selectedNodeKey);
ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
Row foundRow = vo.first();
Row childrow = vo.createRow();
vo.insertRow(childrow);
} -
Hi OTN,
i just want to enable filter on tree table.
use case
1) i have a tree table,input box & a command button. i need to put keyword on input box
then press command button it should locate appropriate node or filer data.
2) i am facing a problem with tree table that is
i have lots of nodes on tree table. so i am scrolling
down and selecting one node. when i press one particular node
tree refreshing and focus going to top node.but second time i can
scroll down and select that node. if i select any other node other than
this its again going to top.
sujithsujith,
You did not provide enough information to really help you.
Which jdev version do you use?
Here are some general help:
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
and 'How to filter tree node child data' in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/feb2011-otn-harvest-328207.pdf
Timo -
Hi,
I have an issue with detached mode on Tree table. In one of the page, I'm having a Tree table in Panel Collection with "Detach" enabled. In Tree Table, I have a column "Actions" and it has links for every record. Using these links, user performs operations like 'allocate' and 'de-allocate '.
I allocated a resource to the Tree table, now the "Deallocate" operation is allowed on that particular row of Tree table.
Now I click the "Detach" button, Tree table is displayed in Detached Mode. When I click the "De-allocate" link of Tree table, allocated resource is deallocated without issue, but the Tree table no more stays in Detached mode.
Here whenever user allocates / deallocates resource from Tree table, I refresh the tree table. I use the binding attribute to refresh the Tree table component.
Can I restrict the Tree table to stay in Detached mode, even after refreshing the component?
Please let me know if there is any solution.
Thanks
RaviHi,
do your links perform a page refresh ? Make sure the links have their partialSubmit property set to true as otherwise they perform a full page refresh.
Frank -
How to insert html table tag in flash.
i am trying to insert my html table format into flash... but flash doesn't support that html table tags....
i'm creating a filp book for help manual.. In that we use flash and html tags... His there any other way to insert html table in to flash...
give ur suggestions..
thanks.As you say, Flash does not support html table tags. Create your own tables using textfields and if you need borders around cells use either textfield borders or lines surrounding the textfields.
-
Would tomahawk selectOneRadio work in html table tag
hey guys,
i want to use the tomahawk tag in a html table in JSF pages, but it seen unwork, my example is shown below
<f:view>
<h:form>
<table>
<!-- include from the other pages called LIC3320.jsp -->
<x:selectOneRadio id="select" layout="spread" forceId="true" forceIdIndex="false" value="#{LIC3320.currentSelect}">
<f:selectItem itemValue="dog" itemLabel="Dog"/>
<f:selectItem itemValue="cat" itemLabel="Cat"/>
<f:selectItem itemValue="fish" itemLabel="Fish"/>
</x:selectOneRadio>
<f:verbatim>
<tr><td align="center" colspan="4">
</f:verbatim>
<x:radio for="select" index="0"></x:radio>
<f:verbatim>
</td></tr>
</f:verbatim>
<!-- include from the other pages called LIC3320.jsp -->
</table>
</h:form>
<f:view>
the main problem is the radio isn't in the table, it came before the table and show at the top of the table. Is if i use tomahawk tag, i must use datetable in JSF?
Thanks
emmyWe have successfully used the Tomahawk radio component within a plain table using JSF 1.1 (MyFaces 1.1.5) and JSF 1.2 (the Sun RI 1.2_04). We also use facelets however and so did not use the verbatim tag.
Did you try looking at the component tree to see if it is in the correct order?
What implementation and version of JSF are you using?
Which version of Tomahawk?
Did you check the generated HTML to see if it is what you expect? -
Logic for inserting values from Pl/sql table
Hi I'm using Forms 6i and db 10.2.0.1.0
I am reading an xml file using text_io, and extracting the contents to Pl/sql table.
Suppose, the xml
<?xml version="1.0" encoding="UTF-8" ?>
<XML>
<File name="S2_240463.201002170044.Z">
<BookingEnvelope>
<SenderID>KNPROD</SenderID>
<ReceiverID>NVOCC</ReceiverID>
<Password>TradingPartners</Password>
</BookingEnvelope>
</File>
</XML>From this xml, i'm extracting contents to a table of records, say bk_arr, which look like
Tag Val
File name S2_240463.201002170044.Z
SenderID KNPROD
ReceiverID NVOCC
Password TradingPartnersAnd now from this i've to insert into table, say bk_det .
The tag may come in different order, sometimes some additional tags may also come in between,
So i cannot access it sequentially and insert like
Insert into bk_det(file,sndr,rcvr,pswd) values(bk_arr(1).val,bk_arr(2).val....)
The tag name is constant ir for sender id, it will always be SenderID , not something like sndrid or sndid etc..
So if i've to insert to senderid column, then i've to match the tag = SenderID, and take the value at that index in the array.
How best i can do this?
ThanksI am referring to how you are parsing the XML - as you can extract values from the XML by element name. And as the name is known, it's associated value can be inserted easily.
Basic example:
SQL> with XML_DATA as(
2 select
3 xmltype(
4 '<?xml version="1.0" encoding="UTF-8" ?>
5 <XML>
6 <File name="S2_240463.201002170044.Z">
7 <BookingEnvelope>
8 <SenderID>KNPROD</SenderID>
9 <ReceiverID>NVOCC</ReceiverID>
10 <Password>TradingPartners</Password>
11 </BookingEnvelope>
12 </File>
13 </XML>' ) as XML_DOM
14 from dual
15 )
16 select
17 extractValue( xml_dom, '/XML/File/@name' ) as FILENAME,
18 extractValue( xml_dom, '/XML/File/BookingEnvelope/SenderID' ) as SENDER_ID,
19 extractValue( xml_dom, '/XML/File/BookingEnvelope/ReceiverID' ) as RECEIVER_ID,
20 extractValue( xml_dom, '/XML/File/BookingEnvelope/Password' ) as PASSWORD
21 from xml_data
22 /
FILENAME SENDER_ID RECEIVER_I PASSWORD
S2_240463.201002170044.Z KNPROD NVOCC TradingPartners
SQL> Now this approach can be used as follows:
create or replace procedure AddFile( xml varchar2 ) is
begin
insert into foo_files(
filename,
sender_id,
receiver_id,
password
with XML_DATA as(
select
xmltype( xml ) as XML_DOM
from dual
select
extractValue( xml_dom, '/XML/File/@name' ),
extractValue( xml_dom, '/XML/File/BookingEnvelope/SenderID' ),
extractValue( xml_dom, '/XML/File/BookingEnvelope/ReceiverID' ),
extractValue( xml_dom, '/XML/File/BookingEnvelope/Password' )
from xml_data;
end;
/No need for a fantasy called PL/SQL "+tables+". -
Line item dimension wont insert sid values in infoobject sid table
Hi all,
I have a strange problem, whenever I load data into a cube which has a line item dimension on 0customer without first loading the master data I am getting inconsistency in RSRV saying that no corresponding DIMid exists in sid table.
So there are Dimids in the fact table but the dimension table, which is same as the sid table in the the case of line item dimension, doesnt have them.
Can someone explain me why is this happening? I thought if a characteristic value doesnt exist in the master data but comes in through the transaction data it inserts the same in the sid table.
Is there a different rule for line item dimensions? Can someone point me to some OSS or documentation?
thanksThanks all..
To clear up a few questions:
1. What I mean by <i>"So there are Dimids in the fact table but the dimension table, which is same as the sid table in the the case of line item dimension, doesnt have them"</i> is:
the line item dimension table /bic/D<cubename>9 which is really a view on the sid table for characteristic /bic/s<ch. name> does have all the sid values (or all the dim values) as the fact table.
So fact table has more entries for that dimension than the sid table.
2. Yes we are facing reporting errors where we cannot drill down by that infoobject and LISTCUBE doesnt show us any cube data when that characteristic is chosen for display.
3. I have checked notes where it seems to be a RSRV bug but in our case it doesnt seem to be as observed in the actual table mentioned in #1
Now it is apparent that I am right both from help.sap.com link and what I am observing that for line item dimensions master data HAS TO BE LOADED FIRST for the characteristics used as a line item. -
The table has total different value than what I inserted!
Hi, I have a table named "cfg2" and the structure of the table is like this.
Name Null? Typ
UID NOT NULL VARCHAR2(30)
S1 VARCHAR2(10)
S2 VARCHAR2(10)
UIDFLAG NOT NULL NUMBER(1)
I inserted "UID" values from 1 to 100 with preparedstatement. The code looks like this.
String query = "insert into cfg2 values (?,?,?,0)";
ps = conn.prepareStatement(query);
for (int i =1; i <=100; i++)
String ii = String.valueOf(i);
ps.setString(1, ii);
ps.setString(2, "blaHi");
ps.setString(3, "blaHa");
ps.execute();
conn.commit();
The strange thing is that the value of "uid" is different from what I inserted. When I use "select * from cfg2", then it shows exactly the values which I inserted. Like this.
UID S1 S2 UIDFLAG
1 blahi blaha 0
2 blahi blaha 0
3 blahi blaha 0
..... Until the UID is 100.
But I can't get any special line, using "select ...where uid like '3(for example)'". So I let only the UID values be shown, using "select uid from cfg2", and then the astonisching result came. All the uid values are 77, like this.
UID
77
77
77 .....
I deleted the table and established another table with the same structure and tested again. The result was always same. No matter what I insert into "UID", the value which I got was always 77. Does anybody have same or similiar experience? Any help is welcome. Thanks.What is your source material? Is it H.264? FCP does not work correctly with that material.
Click on a source clip in the FCP Browser, and once selected, type Command + 9 to see the item properties for the clip. Either report those properties, or take a screen shot of the item properties, and post that here.
Next, click anywhere in your timeline, and then type Command + 0 {zero} to see your Sequence Settings. Either report those Sequence Settings, or take a screen shot of the Sequence Settings and post that here.
MtD -
INSERTING A VALUES IN A DDIC TABLE AT A PARTICULAR INDEX VIA WORKAREA
HI ALL
Can I INSERT a value at a particular index in a DDIC table via a workarea with similar structure.??
like if I have a DDIC table with four feilds and creating a internal table and a workarea with similar structure.
after fetching the values from DDIC table to our internal table and making some changes or wants to insert a values at a particular index. Then Cal I write like:
INSERT WA INTO zMARA INDEX 2.
IS IT WRITE?
OR PLEASE SUGGEST ME THE CORRECT CODE.You can insert or rather update the row of table desired by using Primary key combination..
A Db table will have at least one primary key. So first select the desired record to be updated using
unique combination of primary key to get the row you want to modify in work area then change the
value of that field in work are and then use MODIFY db table from workarea.. Remembr you can't change primary key
If key combination is not found in DB table mentioned in work area then it will insert the row in ZABC..
Code..
consider ZABC having 2 fileds AA and BB, then consider AA as primary key.. and BB as normal field..
Consider row having value AA = 1 and BB = 2.
data: wa_ZABC type ZABC.
data: i_zabc type table of zabc with header line.
Select single * from ZABC into wa_zabc where AA = '1'.
wa_zabc-bb = '3'.
modify ZABC from wa_zabc.
if you want to change multiple lines in internal table and then update in DB table then use
Modify ZABC from table i_zabc. after selecting value of zabc in i_zabc and then change
value by loop .. endloop and then apply the Modify statement..
Hope this solves your query..
Regards,
Uday Desai. -
I Cant insert all values to the table But only Default Values r inserted?
Hai,
i can insert only default values to the database. Other values are not shown in DB.
Steps I have done so far:
I have created EO based on VO and VO has the query : select * from emp. Attached to AM.
That AM is attached to the Page. The page consists of employeed details and SAVE button.
Set controller for that page and CO-PR calls create method in AM .
Default values for who columns and SLNo also set through sequence.
In CO-PFR I call apply method which commits the data.
when i run the page and giving values it is not inserted into table but only default values are inserted.
I checked with System.out.println(getattribute("my attr").toString()). It send output correctly.
But y other values are not inserted.?
Anybody plz plz help me in this regard. I am struggling with this for last 1 week. I have to apply this to another realtime scenorio? Deadline is near.
Regards,
Lakshmi ChandiranHai Prince,
Thanks for your immediate response. pls find my codes written in EO,AM,CO.
In VO i havent added anythig xcept the query.
The following fields are only getting inserted in the table.
My EOImpl code:
public void create(AttributeList attributeList) {
super.create(attributeList);
System.out.println("NOW I AM IN CREATE METHOD");
OADBTransaction transaction = getOADBTransaction();
Number EMP_ID = transaction.getSequenceValue("Employeeid");
setEmpId(EMP_ID);
setCreationDate(transaction.getCurrentDBDate());
setStartDate(transaction.getCurrentDBDate());
setLastUpdateDate(transaction.getCurrentDBDate());
setCreationDate(transaction.getCurrentDBDate());
VO:
select * from emp1
AM:
public void saveForm()
OAViewObjectImpl empvo = getEMP_VO();
System.out.println("NOW I AM IN AM SAVEFORM OF EMTS");
if ( !empvo.isPreparedForExecution())
empvo .executeQuery();
Row prow = empvo .createRow();
empvo .insertRow(prow);
prow.setNewRowState(Row.STATUS_INITIALIZED) ;
System.out.println("NOW I AM IN ROW CREATED");
public void commitdata()
System.out.println("commitMethod()") ;
getDBTransaction().commit();
CO:PR & PFR:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
if(!pageContext.isFormSubmission())
pageContext.getApplicationModule(webBean).invokeMethod("saveForm",null);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule EMP_AM = pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)EMP_AM.findViewObject("EMP_VO");
if ( pageContext.getParameter("BtnSave") != null )
pageContext.getApplicationModule(webBean).invokeMethod("commitdata");
s1 = (String)vo.first().getAttribute("Empname");
s12 = (String)vo.first().getAttribute("Emptype");
s3 = (String)vo.first().getAttribute("Emporg");
s4 = (String)vo.first().getAttribute("Empcity");
System.out.println(" values are " + s1+s2+s3+s4);
here i can get the values correctly printed in output as entered in the form.
I dont know where the problem is.
plz help me.
Thanks in advance,
Regards,
Lakshmi Chandiran -
Passing values to action form in struts using html:link tag in struts
hi
As we can post values to action form bean in struts using a <html:text> tag in side a form.
Can the same be achieved by using a html:link attribute.
If not then how can this be achieved (i.e. posting a form on click of a link and populating action form bean property for the same).
thanx in advance.Crosspost:
http://forum.java.sun.com/thread.jspa?threadID=5244035&tstart=0
Maybe you are looking for
-
HTML to WML conversion code needed
hi all, we need HTML to WML conversion java code.Can somebody please help.The jtidy source code has errors. iwapgrp
-
Images pasted into mail from photoshop are drastically reduced in size.
At work, I am constantly sending previews of artwork through email. I CmdShiftC in Photoshop to copy merged (this essentially takes a screen shot of your current selection in a Photoshop document, then I Cmd+V to paste it into mail. I have been doing
-
Automatic Creation of Settlement Rule for Maintenance Order
Hi, While doing TECO for Maintenance Order, its asking for Settlement Rule. IF I click settlement rule, message is coming as Maintain Settlement Profile with options like With Default, Without Default & Cancel. I have maintained the Cost center in Eq
-
Why some albums are not available in other stores than the U.S one?
When i found a song on the web page i click on "view in Itunes" (...) but then appears a message saying "this song is not available to your coutry store". Why is that?
-
I had Itunes installed on 2nd hard drive and it crashed
I had ITunes installed on 2nd hard drive and it crashed. I tried to install a new copy of ITunes and it keeps looking for the ITunes that was on the one that crashed. How do I keep ITunes install package from looking for the old install.