Use VO to get the value of the DB and set the attribute
HelloI work a page to create the new order. I need some information complete. This is my code, which works in some way not
Public createOrder() //(String[]_args) Sub
{
OAViewObject vo = (OAViewObject) getxxMobileOrderVO1 ();
If (! vo.isPreparedForExecution ())
{
vo.executeQuery ();
}
Line = vo.createRow ();
vo.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
Complete support information
xxMobileSupportVOImpl sptVo = (xxMobileSupportVOImpl) getxxMobileSupportVO1 ();
If (sptVo is nothing)
{
MessageToken [] errTokens = {new MessageToken ("parameter", "xxMobileSupportVO1")};
throw new OAException ("PER", "XXBOL_OAF_OBJECT_NOT_FOUND", errTokens);
}
sptVo.initSupport ();
Line sptRow = sptVo.getCurrentRow ();
If (sptRow! = null) {}
row.setAttribute ("SupportPersonId", sptRow.getAttribute ("PersonId"));
row.setAttribute ("SptName", sptRow.getAttribute ("FullName"));
row.setAttribute ("SptEmail", sptRow.getAttribute ("EmailAddress"));
}
}
The xxMobileSupportVO of VO is that a simple select statement returns a record:
SELECT ppx.person_id
ppx.employee_number
ppx.full_name
ppx.email_address
-, lk.tag
OF fnd_lookup_values LC
per_people_x ppx
WHERE lk.lookup_type = 'XXXX '.
AND lk.lookup_code = ppx.employee_number
AND lk.enabled_flag = 'Y '.
AND lk. LANGUAGE = USERENV ('LANG')
AND lk.tag =
(SELECT MAX (NVL (tag, 0))
OF fnd_lookup_values
WHERE lookup_type = 'XXXX '.
)
AND trunc (sysdate) BETWEEN lk.start_date_active
AND NVL (lk.end_date_active, hr_general. END_OF_TIME)
The original Version is correctly connected to AM. I use the Test feature to make sure that it becomes value.
However, when the page opens and createOrder method is called. The field gets no value populated.
Anyone can tell what is the problem?
Thanks in advance.
Rudolph
You run the query of the VO?
I guess you're running it in sptVo.initSupport ();
Otherwise, first run the VO by using sptVo.executeQuery)
After executing the query, do sptVO.first ().
This will give the line of the VO.
Then do your work on this basis.
Kind regards
Stephanie.
Tags: Oracle Applications
Similar Questions
-
To get the attributes of node of a node using a DOM parser
Hi, is there an easier way to obtain the attributes of a node using a DOM parser. I do not understand the method getAttributes() because it returns NamedNodeMap where are all the getters return a node. I have just this simple xml structure:
EditField
First name
For example, I am able to do "editfield" and "First name" but I want to be able to get the id attribute of matching nodes as well. The just getNodeValue() returns me null and getLocalName() and getNodeName() returns just me TYPE or a QUESTION.
Any help please if anyone knows. Oh and I don't want to use the DOM, SAX parser. Thank you very much in advance
I discovered how to get the attributes after some Google search and changes. It's here
NamedNodeMap attributes = (NamedNodeMap) tempNode.getAttributes ();
for (int = 0; g g< attributes.getlength();="" g++)="">
Attribute attr = (Attr) attributes.item (g);
System.out.println ("attribute:" + attribute.getName () +)
("with the value" + attribute.getValue ());
}You do not have to use NamedNodeMap, I did not know how before. You go around casting too. Awesome, I didn't use SAX after all now
-
original title: can't use windows update, get the message 'the website has encountered a problem and cannot display the page you are trying to view. I am running xp. Can anyone help?
I can't use the update. Still get the same message. Fix - it for Windows can not solve the problem. I am running xp. Help, please!
Hi Hojo11779,
You can see the mentioned knowledge base article and check.
You receive an error message "Windows Update has encountered an error and cannot display the requested page" when you try to install an update
http://support.Microsoft.com/kb/883614
Let us know if it helps.
-
Hello, the following problem, I use a PC, can not use Photoshop, you get the following error message on the computer-Adobe Photoshop CC 2015 has stopped working " ", "the program '. '. have uninstalled et installed a number sometimes but the CC2015 does not start anyway. Soren
Please see:
Re: adobe photoshop cc 2014 has stopped working in windows 8
Re: Photoshop CC 2015 has stopped working
https://www.YouTube.com/watch?v=0OUdIZT7C2E
I hope this helps.
Concerning
Megha Rawat
-
Parsing XML and get the attributes of a tag
Hello
When parsing XML for application of Cascades in C++, I am able to get the value of a tag as follows:
00000 But I also want to get the attributes of a tag:
But I don't know how to get the 'CA' and 'California' attributes with my current code. Can anyone help? Here is the code I use to parse the XML code:
void CMController::requestFinished(QNetworkReply* reply) { if (reply->error() == QNetworkReply::NoError) { QXmlStreamReader xml; QByteArray data = reply->readAll(); xml.addData(data); QString zip; QString id; QString location; while (!xml.atEnd() && !xml.hasError()) { /* Read next element.*/ QXmlStreamReader::TokenType token = xml.readNext(); /* If token is just StartDocument, we'll go to next.*/ if (token == QXmlStreamReader::StartDocument) { continue; } /* If token is StartElement, we'll see if we can read it.*/ if (token == QXmlStreamReader::StartElement) { if (xml.name() == "zip") { zip = xml.readElementText(); } if (xml.name() == "id") { ??? } if (xml.name() == "location") { ??? } } } emit succeeded(result); } else { emit failed(); } reply->deleteLater(); }
Thank you!
I found a working example:
if(xml.name() == "state"){ QXmlStreamAttributes attrib = xml.attributes(); QStringRef ref = attrib.value("location"); qDebug() << "location: " << ref; }
-
using script to get the values of percentage and not able to sum up to 100%
Hi all
I am trying to use a parseFloat() function to convert the string value as a percentage, and then try to add all the values of %.
but for a few scenrios even if the amount is 100% of the service I get the PctValue be <>100.00%
the calculation of the function is as follows: -.
code-
{iterating_through_all_the_fields}
PctValue += parseFloat (this.getField("Percentage1").valueAsString);
}
sample-
11.12
11.11
11.11
11.11
11.11
11.11
11.11
11.11
11.11
amount is 100
but through code mentioned above I return 99.99
Any help is appreciated in this regard.
It is a result using the floating point IEEE standard and conversion from decimal to binary values values. We need to round up all the calculations of money or mils will accumulate and cause errors. For percentages, it is better to round up receipts and total final eliminate the accumulation of amounts below the figure the least significant.
It is possible to use the util.printf of rounding.
The following script will show what is happening:
function Round (nValue, nDec) {}
If (typeof nDec == "undefined") nDec = 0;
Return number (util.printf ('%, 1 0. nDec + "f", Number (nValue)));
}var nValues = new Array (11.12 11.11 11.11, 11.11, 11.11, 11.11, 11.11, 11.11, 11.11);
nSum var = 0;
for (var i = 0; i)< nvalues.length;="" i++="" )="">
nSum = nSum + Round (nValues [i], 2);
Console.println (i + "" + nValues [i] + "" + nSum);
}
Console.println (nSum);
nSum = Round (nSum, 2);
Console.println (nSum);Progression of the sum at each stage.
0 11,12 11.12
1 11.11 22.229999999999997
2 11.11 33.339999999999996
3 11.11 44.449999999999996
4 11.11 55.559999999999995
5 11.11 66.66999999999999
6 11.11 77.77999999999999
7 11.11 88.88999999999999
8 11.11 99.99999999999999
99.99999999999999
100true
It's a good idea to use decimal values a percentage and leave the determination of the field format display and the borough. But for applications of the sum, the user can round up the value of the actual field and not only display.
-
Get the attribute value of a def page table by using el expression.
Hello
Use Jdeveloper 11.1.2.0.0 and have a requirement like this for which a sample is created. Requirement is as follows...
1. do you have a Taskflow with a readonly employee table.
2. by clicking on a button called "itinerary" checks if the selected line, the attribute Manager id value = 200 then go to the first page on the other if the value attribute id manager is 200 then go to the second page.
Through the def page, if it has the form, then we can access the attributes like #{data.view_FirstPageDef.ManagerId}. In the case of acquisition of the same attribute value from the table using the def page? is what I am unable to get...
Come to the notion of routing using the router on Taskflow activity. But I am unable to get the selected row in a table of employee page def attribute value. Can anyone suggest on the same...
Thank you and best regards,
Olivier GOn the router, right-click on its icon in the workflow and create a page definition. Then in the file def, add an iterator based on the same view of the table object in the first page, then add a value attribute that is mapped to the managerId in the iterator of the View object. Finally in the router, you can write EL expressions along the lines of #{bindings. ManagerId.inputValue = 200} or #{bindings. ManagerId.inputValue! = 200}.
CM.
-
When you use Windows Update Center for Windows XP Media Center with Service Pack 3 installed, I now get the following message is displayed:
[Error number: 0 x 80070424]The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. For self-help options:
To support options:
- Microsoft online assisted support (no cost for Windows Update issues)
I looked at the FAQ which makes no mention of SP3 but support States SP2 is underway, can you help me?
Hey PABear and John_P.
I found another link, and it's worked perfectly
http://www.techiecorner.com/112/error-number-0x80070424-in-Windows-Update-solution/
Thanks a lot for your help, definetitely remember Windows Fix It for later use
Dave
-
How to get the attributes from the list of values
Hello
I have two display objects, of 'Customer' and 'CustomerDetails '.
'Client' view, has the attribute 'CustomerId' I've defined as LOV with view of 'CustomerDetails '.
Like this:
I hung out in the soc on my page<ListBinding Name="LOV_CustomerId" ListVOName="CustomerDetailsView1" ListRangeSize="-1" NullValueFlag="start" NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}" MRUCount="0"> <AttrArray Name="AttrNames"> <Item Value="CustomerId"/> </AttrArray> <AttrArray Name="ListAttrNames"> <Item Value="Id"/> </AttrArray> <AttrArray Name="ListDisplayAttrNames"> <Item Value="Name"/> </AttrArray> <DisplayCriteria/> </ListBinding>
In the 'CustomerDetails' view, there is also "address" attribute.<af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}" required="#{bindings.CustomerId.hints.mandatory}" shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true"> <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/> </af:selectOneChoice>
I would like to get the address according to the ID.
How could I get through links?
or in another way.
Thank you!!Hello
You want to display the address that is present in VO from customer to customer details?
If so,.
Perform the following steps:
1 - Create a transient with string type attribute customer details VO (always updated).
2 - I hope you have an attribute customer id here attribute where you created LOV. When LOV created in create list of values jump towards the top in the list of return values assign the value of the address in the transitional attribute.If you put this attribute on the user interface you can see the customer address id value correspondent.
Thank you
Prateek -
Using variables to get the answers to the questions of fill-in-the-White
Hello
Fill-in-the-blank questions, to provide answers. I want to provide these in the form of variables (user-created), rather than in the form of fixed strings (so, as $$ var1$ $ and not as 'Rabbit'). I could not get this to work. The variable input function is available (in the properties panel), but it does not in fact (i.e. even if you select a variable to be entered, it is not actually automatically registered).
Is there a way around the problem?
1. NB containing the same question for text entry boxes (rather than fill-in-the-blank questions). If I could get this works for text entry boxes, I'd use questions these rather than fill-in-the-white.
2. a peut use variables for the answers to the multiple-choice questions. So I hope I can make it work for fill-in-the-blank questions as well.
Thank you in advance. Marvin DuBois
That would be my suggestion. I don't have a blog, but using BER of for this kind of questions me as well. And unlike the widget/interaction, that I've mentioned before, BER is an interactive object, which means it can be validated and that there may be a score attached to it. But, it will not help you, since you have to add the correct answers in the same way as for a drop-down list in the issue of the FIB (they are the sorts of TEB). And it is this list that does not enter a variable rather than a fixed sequence of characters.
This means that you are into stocks advanced, identical to that of my blog posts with the widget/interaction.
Have a work around (after all I'm the work around Queen) having intercourse, if you don't check that BER, described here:
http://blog.lilybiri.com/report-custom-questions-part-2
The idea is to use another interactive object that can have a score. Actually, I use two instances of the same object: a score of 0 and one with score of X and show the right according to the conditional action.
However if you want to have multiple TEB on the same blade, which must be verified with the same tip action, you will need either the mastery of InfoSemantics (only for output SWF) widget or Javascript.
Lilybiri
-
get the attributes NAME / VALUE of a XML
I love this forum :)
I load a XML one fill a tree, where I started to drag items.
the XML looks like this:
< myTag attrName = "attrValue" otherAttrName = "otherAttrValue" / >
var ds:DragSource = event.dragSource;
var var1:String =(event.dragInitiator as Tree).value.@attrName;
-> the variable var1 is now: "attrValue".
My question is... How can I get the names of all attributes? in this example: attrName and otherAttrName (assume that I don't know the structure of this xml node)
What attribute values?
Thank you!
The snippet below takes a node xml (nodeCur), made a loop through the list of attributes and built a table that contains the attribute name and value of each attribute. It is a sample application that allows you to edit an xml file.
I'm sorry that the forum will remove formattingvar aDPAttributes:Array = new Array();
var xlAttributes:XMLList = nodeCur.@*;
var: attribute;
for (var i: int = 0; i< xlattributes.length();="" i++)="">
aDPAttributes.push ({name: xlAttributes [i] .name (), value: xlAttributes [i]});
}
dgAttributes.dataProvider = aDPAttributes; Set the sheet dataProvider propertyTracy
-
If I buy a used ipad can get the changed password
If I buy an ipad 2 opportunity get the password changed so the seller forgot it?
If the seller forgot https://iforgot.apple.com/password/verify/appleid#! & section = password
otherwise, you and the seller must go to an apple store with proof of purchase
-
I have Windows 7 32 - bit PC running, using uTorrent I get the BlueScreen error
Signature of the problem:
Problem event name: BlueScreen
OS version: 6.1.7601.2.1.0.256.1
Locale ID: 1033More information about the problem:
BCCode: d1
BCP1: 00000014
BCP2: 00000002
BCP3: 00000000
BCP4: 8A2E4BF2
OS version: 6_1_7601
Service Pack: 1_0
Product: 256_1
The dump file is uploaded here:
https://SkyDrive.live.com/redir?RESID=B0361FAAAC5DAD7D! 198
And the Crash report:
https://SkyDrive.live.com/redir?RESID=B0361FAAAC5DAD7D! 199
So, how to stop this error?NETIO.sys crashes
Folderlock is installed? I see that mfehidk.sys is also on this system, this belongs to Mcafee.
0x000000D1 and netio.sys is a known BSOD caused by a Mcafee program. I would get the Mcafee removal tool and remove the rest of Mcafee, if you uninstalled
Kaspersky AV is also installed
-
How to use JS to get the movieclip in the Web?
Hello
Look at this code example:
JS of the canvas:
(function (lib, img, cjs, ss) { var p; // shortcut to reference prototypes // library properties: lib.properties = { width: 550, height: 400, fps: 24, color: "#FFFFFF", opacity: 1.00, manifest: [] }; lib.ssMetadata = []; // symbols: (lib.mc = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // ss 1 this.shape = new cjs.Shape(); this.shape.graphics.f().s("#FFFFFF").ss(1,1,1).p("ApwmjIThAAIAANHIzhAAg"); this.shape.setTransform(62.5,42); this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FF0000").s().p("ApwGjIAAtGIThAAIAANGg"); this.shape_1.setTransform(62.5,42); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = new cjs.Rectangle(-1,-1,127,86); // stage content: (lib.mymc = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // mc this.mc = new lib.mc(); this.mc.setTransform(215.5,167.1,1,1,0,0,0,62.5,42); this.timeline.addTween(cjs.Tween.get(this.mc).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = new cjs.Rectangle(427.5,324.6,126,85); })(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{}); var lib, images, createjs, ss;
HTML:
<body> <canvas id='canvas'></canvas> </body> <script> alert('lib.properties.fps') </script>
My question:
the canvas has a movieclip named "mc".
How can I alert the 'mc' as alert the 'lib.properties.fps '?
alert('lib.mymc')//success alert('lib.mc')//success,but it is library ,Not in the scene alert('lib.mymc.mc')//undefined,how do it?
Thank you very much!!
Hi, ClayUUID
Thank you help!
the JS of the Web is published, we can change it. I want to play the film of the canvas from the html file, so I get the film name or ID Witch of the Web.
NOW I can solve this issue to share with everyone.we:
Set a global variable to store the name of the instance you want, you can easily find it.
-
How to get the attributes of node when you query the TQL via java API
Hello
I'm trying to pick up a hierarchy of IC using a TQL. I created a TQL on uCMDB and am now questioning him through the uCMDB java API. The TQL is simple and queires a hierarchy containing a Node (Server) containing the disks, file systems, interfaces and IP addresses.
My code snippet is:
UcmdbService ucmdbService = CMDBConnection.createCMDBService();
TopologyQueryService queryService = ucmdbService.getTopologyQueryService();
Topology topology = queryService.executeNamedQuery("BasicTopologyView");
CollectionallCIs = topology.getAllCIs(); for (TopologyCI node : allCIs) {
System.out.println("Node is " + node.getPropertyValue("display_label") + "(" +node.getId().getAsString() + ") ... " + node.getPropertyValue("display_label")
+ " ... " + node.getPropertyValue("TenantOwner")+ " ... " + node.getPropertyValue("discovered_os_name"));
}The output I get is
The node is/usr (18de9fd759680f10b4f1d3567fb0f5e5)... / usr... null null
The node is/tmp (18eaac5d8ec14e45874029f25011a13c)... / tmp... null nullWhatever properties I question are coming as null. Is there a way I can say uCMDB what I expect from each node to the execution of the attributes.
Thanks in advance.
Peyrot
This problem is now resolved. The correct way to proceed, queryProperties method is used when querying of the node.
node.queryProperties(props);
When the accessories is a string containing all of the appropriate properties you want to take to uCMDB.
Maybe you are looking for
-
I looked at my watch and there was nothing there. White screen. I thought that maybe the battery was exhausted, although it was quite busy. So I plugged it up to charge and still nothing!
-
Standalone screen as a second monitor
Hi community Can I use use a stand-alone (for example Samsung) screen as a second monitor with my iMac 21.5 inches (end 2013)? V OS X Yosemite 10.10.5 (14F1021) Processor Intel Core i5 at 2.7 GHz 8 GB 1600 MHz DDR3 memory Intel Pro Iris 1536 MB graph
-
will not install updates... code 646
good day to hope tried to install two updates for over a week now and so far no update of luck.the is kb978380 for office 2007 kb978382 for excel 2007. everytime I try to download, it creates a restore point and then is as it should be, but then I ge
-
The COA label on my computer is damaged and unreadable. Is there a return towards the high that nowhere elsewhere in the computer? My computer has been deleted and everything (including the pilot) and is now saying my windows can not be true, the COA
-
HP Pavilion g6-1d45dx: HP TOOLS E LICENSE LIMITED SPACE, IMPOSSIBLE to EXECUTE BACKUP
I read a few similar posts with the same concern, but I'm not tech savvy so ask for help step by step. My laptop has attempted to create backup this morning and a warning message stated that drive E didn't have enough space to run/save the task. I wo