How to read values from Property XMLfile into BPEL process local variable?
I would like to use a Property file with some parameters e.g.
<myparm1>
12345
</myparm1>
How can I read from a BPEL process such a Property XML text file and assign it into e.g. local variable "intparm1"?
Where (in which directory) should I put this XML Property file to have it always available for reading?
Peter
Hi,
You can also use
ora:readFile( ) function as follow :
ora:readFile(xml file location (ex. "file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xml"),xsd file location (ex."file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xsd"))
inside the assign activity and assign this to the variable you want.
regards
arababah
Edited by: arababah on Aug 10, 2009 12:55 AM
Similar Messages
-
How to read values from Property file into BPEL process local variable?
I would like to use a Property file with some parameters e.g.
<myparm1>12345</myparm1>
How can I read from a BPEL process such a Property file and assign it into e.g. local variable "intparm1"?
Where (in which directory) should I put this XML Property file to have it always available for reading?
PeterHi,
You can also use
ora:readFile( ) function as follow :
ora:readFile(xml file location (ex. "file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xml"),xsd file location (ex."file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xsd"))
inside the assign activity and assign this to the variable you want.
regards
arababah
Edited by: arababah on Aug 10, 2009 12:55 AM -
How to read values from DMM4040
Hi,
I am using DMM4040, NI PXI 6509 device.
I need to make some port pins high which i have already done and now i have to read value captured by DMM then i have to make my port pins low if my value is within limits.
Can u suggest me how to read values from DMM and then by notification i ll make my port pins low.
'' A professional is someone who can do his best work when he doesn't feel like it''...........What language are you using? If using LabVIEW, you use the NI-DMM API to communicate with the 4040. Just take your reading, do your limit comparison, and set your lines based on the comparison results.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to read a whole text file into a pl/sql variable?
Hi, I need to read an entire text file--which actually contains an email message extracted from a content management system-- into a variable in a pl/sql package, so I can insert some information from the database and then send the email. I want to read the whole text file in one shot, not just one line at a time. Shoud I use Utl_File.Get_Raw or is there another more appropriate way to do this?
how to read a whole text file into a pl/sql variable?
your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
.... -
How to read values from the following XML?
I have been using "extractValue" to get the values from a xmltype field and no problems until now.
The xmltype now is like:
<a>1</a>
<b>2</b>
<c>1221</c>
<c>1412</c>
<d>11111</d>
<e>3333</e>
I'm able to read values from 'a,b,d,e' but not from 'c'.
Questions:
1)- Is posible to read the values of field c?. How?
2)- If is not posible to read the field values, Is posible to transfor the xmlfield to:
Where I will be able to use xmltable columns and loop getting the values.
<a>1</a>
<b>2</b>
<k>
<c>1221</c>
<c>1412</c>
</k>
<d>11111</d>
<e>3333</e>
Like always
Thank you in advance for your help.
Jose GalanSQL> with XML as
2 (
3 select xmltype(
4 '<root>
5 <a>1</a>
6 <b>2</b>
7 <c>1221</c>
8 <c>1412</c>
9 <d>11111</d>
10 <e>3333</e>
11 </root>'
12 ) XMLDOC
13 from dual
14 )
15 select a, b,c, d, e
16 from XML,
17 XMLTABLE
18 (
19 '/root'
20 passing XMLDOC
21 columns
22 A number(5) path 'a',
23 B number(5) path 'b',
24 D number(5) path 'd',
25 E number(5) path 'e',
26 C_XML_FRAG xmltype path 'c'
27 ),
28 XMLTABLE
29 (
30 '/c'
31 passing C_XML_FRAG
32 columns
33 C number(5) path '.'
34 )
35 /
A B C D E
1 2 1221 11111 3333
1 2 1412 11111 3333
SQL> -
How to read value from select list
Hi,
i'm using jdev 10.1.3.1.0, adf, jsp and struts.
i've made a simple viewobject 'bestyrer' (danish for department) and it contains a list of all available department in my organization.
it appears in my jsp page as a dropdown list and when the user chose a specific department all employees in that department are shown as a master detail relationship.
It works and its standard drag'n'drop in JDev.
I need to know which department the user have chosen because the information i show to the user depends on it.
my view look like this:
SELECT KBestyrer.BESTYRER,
KBestyrer.NAVN
FROM K_BESTYRER KBestyrer
bestyrer is a number and navn is the name of the department.
the code generated in my jsp based on drag and drop is:
<html:select property="KBestyrerView"
disabled="${!bindings[\'KBestyrerView\'].updateable}"
onchange="DataForm.submit();">
<html:optionsCollection label="prompt" value="index"
property="KBestyrerView.displayData" />
</html:select>
and the corresponding HTML generated is:
<select name="KBestyrerView" onchange="DataForm.submit();"><option value="0" selected="selected">0 Vejdirektoratet</option>
<option value="1">101 København</option>
<option value="2">147 Frederiksberg</option>
<option value="3">151 Ballerup</option>
<option value="4">153 Brøndby</option>
<option value="5">155 Dragør</option>
<option value="6">157 Gentofte</option>
<option value="7">159 Gladsaxe</option>
<option value="8">161 Glostrup</option>
<option value="9">163 Herlev</option>
<option value="10">165 Albertslund</option>
<option value="104">999 Andet</option></select>
First of all i don't want the indexed values as values of my individual options but the real values as seen in fron of the name. i.e. 101 147 151 and so on.
how do i obtain this and how do i read the value the user have chosen?
hope to receive some help.
thanks
br
kim gabrielsenOk,
thanks for the pointer. it clearifies a bit but i cannot make it work.
I've created a second binding as described in the dokument which gives me another binding in the pagedef file:
<attributeValues IterBinding="KBestyrerViewIterator" id="Bestyrer">
<AttrNames>
<Item Value="Bestyrer"/>
</AttrNames>
</attributeValues>
i guess i should be able to reference this binding using 'Bestyrer' as the id.
in my JSP page i insert the following:
<html:select property="KBestyrerView"
disabled="${!bindings[\'KBestyrerView\'].updateable}"
onchange="inspect(this.form)" >
<html:optionsCollection label="prompt" value="#{bindings.Bestyrer.getInputValue()}"
property="KBestyrerView.displayData" />
</html:select>
but it fails with an error:
org.apache.commons.beanutils.NestedNullException: Null property value for '#{bindings' at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:669) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)
I've tried #{bindings.Bestyrer} and #{bindings.Bestyrer.inputValue()}
but they fail too.
so there is clearly something i don't understand regarding this binding stuff.
Assuming i get this to work how do i actually accesss the value chosen by the user?
as far as i recall in plain HTML i gave the select list a name like:
name=MyList
and called a javascript function like this:
onchange="inspect(this.form)"
in my JS function i could access the value like this:
function inspect(form){
alert(form.MyList.options[form.MyList.selectedIndex].text)
but when i name the select list i receive an error:
javax.servlet.jsp.JspException: Cannot find bean under name MyList at org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:301) at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:244) at brugeroversigt.jspService(_brugeroversigt.java:75) [brugeroversigt.jsp]
I'm a bit confused here so any input would be appreciated.
br
kim gabrielsen -
How to read value from Key flexfield added on to the newly created SIT
Hi Experts,
I have a requirrment to display a new structure in the Special Information Types (SIT) screen in SSHR. The data entered into the segment needs to be validated using PL/SQL function.
I have performed below steps to display the structure/field on SIT Page
1. Created new flexfield structure as XX_LEAVE_ENCASHMENT under the "HUMAN RESOURCE" Application (Application id- 800) and flexfield TITLE "Personal Analysis Flexfield" (PEA).
2. Added a new segment "Encash Days" for the newly created flexfiled structure "XX_LEAVE_ENCASHMENT".
3. Added this new structure in the Special Information Types form in HRMS responsibility
4. The structure is enabled on the SIT screen.
Now I want to validate the data entered in Encash Days field in this page by calling a PL/SQL function. This can be done by extending the SIT page Controller.
But how should the ID of the newly enabled segment (in the new Flexfield strucuture) be retrieved in the controller inorder to read the user-entered value (to further call the validation program)? Or is there any other way of achieving this functionality in OAF?
Please help.
Thanks.Hi,
Yes, u can get the value from the SIT and perform the relevant validation too.
Refer http://apps2fusion.com/at/43-ss/453-oaf-extension-case-study
Regards,
Gyan -
dear all
can you tell me how to read the value from the gride view coloum...
when i double click on the RowsHeader then i need to pick the value for 2 coloum.
thanks in advance...Hi Kishor,
Try This......
If pVal.FormUID = "test3" And pVal.ItemUID = "grid" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK And pVal.BeforeAction = False Then
oform = sbo_application.Forms.Item("test3")
ogrid = oform.Items.Item("grid").Specific
For i As Integer = 0 To ogrid.Rows.Count - 1
If ogrid.Rows.IsSelected(i) = True Then
MessageBox.Show(ogrid.DataTable.Columns.Item(0).Cells.Item(pVal.Row).Value)
MessageBox.Show(ogrid.DataTable.Columns.Item(1).Cells.Item(pVal.Row).Value)
End If
Next
End If
Thanks
Shafi -
How to read value from /401 in my pcr
HI
i have to write a PCR using /401 wage type (which stores projected no of months)
i am trying to write as below.
RTE=& /401.
but i am not able to fetch the value from /401 though in input table i can see the value under Rate as 11.
please help me in fetching the value form /401.
thx
jhI SIKINDAR,
I am trying to take the value stored in rate of /401 and multyply with constant and store amount field of /3C5.but i am not able to get value from /401
RTE=& /401 SET
NUM=KCARPK Set
MULTI RNA Multipl.amt/no/rate
ADDWT /3C5 OT Output table
thx
arun -
How to insert values from different region into one table
Hi everyone
I have created a page which contains 4 html regions like region1,region 2 ...region 4
in region 1 i created 2 text items like (emp_name,emp_id).
in region 2 i created 2 date fields (start_date,end_date).
In region3 i created a tabular form which contains(job , hire_date).
in region 4 i created a textfield (%of Hike)
So i want to create a button(submit) .when i press the button it will insert all the informations provided by the user in different regions will be inserted to a table called employee_information.
Can i do this?
If it is possible please tell me how to do this
if not then tell me any alternative solution.
Thanks,
Regards,
SabyasachiSabyasachi wrote:
Hi fac586
Can you please tell me step by step how to do it or can you please make an example in apex.oracle.com and give me the credentials so that i can know clarify my doubts.1. Create a Form using a Wizard. This will create the items and processes necessary to retrieve data from, and perform DML on, the table. The items will be contained in a single default region.
2. Create custom HTML regions on page.
3. Move items and buttons from the default region created by the Form Wizard by changing the Region value in the "Displayed" section of the item attributes page, or Page Items page; or reassign items to regions using the Reassign Region Items page. -
HCM Flexible appraisal template how to read value from a dropdown selection
We are on EHP5 based HCM system.
We are trying to read a drop down value populated in appraisal document. This drop down value is coming from a scale type. Now when i check webdynro application HAP_DOCUMENT_BODY , method BUILD_DOCUMENT_BODY seems to be building the UI and populating all the values. Now I am trying to put a break point and capture instance of this drop down and then based on selected value of the drop down wanted to populate another field attached to same column. Well that will be number two but yeah first thing first, need to find how i can capture drop down instance.
Thanks for your time.
Rgds,got a body hrhap00_value_det which can do the trick..but i am still trying to figure out how to pin point my element and then process the logic.
-
To read data from exel file into sap
hi all,
How to read data from exel file into the internal table in abap?
Regards,
sugeet.Hi Sugeet,
Use the following code.
DATA : BEGIN OF tbl_asset occurs 0,
anlkl LIKE anla-anlkl, " Asset Class
bukrs LIKE anla-bukrs, " Company Code
ranl1 LIKE ra02s-ranl1, " Asset #
txt50 LIKE anla-txt50, " Description 1
txa50 LIKE anla-txa50, " Description 2
sernr LIKE anla-sernr, " Serial #
invnr LIKE anla-invnr, " Inventory #
menge LIKE anla-menge, " Quantity
meins LIKE anla-meins, " Base UOM
inken LIKE anla-inken, " Inventory
END OF tbl_asset.
DATA : w_filename TYPE IBIPPARMS-path,
w_file TYPE string.
start-of-selection.
*popup for file path from user
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
IMPORTING
FILE_NAME = w_filename .
MOVE w_filename TO w_file .
* upload data
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = w_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = tbl_asset
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
for HAS_FIELD_SEPARATOR Use
'X': Fields are separated by tabs.
SPACE: Fields are not separated by tabs. In this case, the table must contain only one column or all columns must be contained in the file in their entire length.
Hope it helps...
Lokesh
Pls. reward appropriate points -
How can i store values from my String into Array
Hi guys
i wants to store all the values from my string into an array,,,, after converting them into intergers,,,, how i can do this becs i have a peice of code which just give me a value of a character at time,,,,charat(2)...BUT i want to the values from String to store in an Array
here is my peice of code which i m using for 1 char at time
int[] ExampleArray2 = new int[24];
String tempci = "Battle of Midway";
for(int i=0;i>=tempci.length();i++)
int ascii = tempci.charAt(i); //Get ascii value for the first character.public class d1
public static final void main( String args[] )
int[] ExampleArray2 = new int[24];
String tempci = "Battle of Midway";
for(int i=0;i<tempci.length();i++)
int ascii = tempci.charAt(i);
ExampleArray2=ascii;
for(int i=0;i<ExampleArray2.length;i++)
System.out.println(ExampleArray2[i]); -
How To Concatenate Column Values from Multiple Rows into a Single Column?
How do I create a SQL query that will concatenate column values from multiple rows into a single column?
Last First Code
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14
Result should look like:
Last First Codes
Lesand Danny 1,2,3
Benedi Eric 7,14
Thanks,
David JohnsonStarting with Oracle 9i
select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
from
(select last, first, code, row_number() over(partition by last, first order by code) rn
from a)
connect by last = prior last and first = prior first and prior rn = rn -1
start with rn = 1
group by last, first
LAST FIRST CODES
Lesand Danny 1,2,3
Benedi Eric 7,14Regards
Dmytro -
How to get a value from one item into another
How can i get value from one item into another item.
Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
How can i do this?
Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.Hi Fredr1k,
Use the V() function from pl/sql.
e.g. V('P3_MY_ITEM')
will return the value of that page item.
As long as the pl/sql is called from within the Apex environment.
Regards
Michael
Maybe you are looking for
-
Please help-Trying to compress to Mpeg-2 for Convention, also resizing issues
Hello, I just recently finished making an AMV in Adobe Premiere 5.5, and I am having trouble trying to figure out how to compress it into an Mpeg-2 source for a competition/convention. I also have these massive black borders on the side of my video t
-
Active Directory, SSO, Integrated Windows Authentication
Hi, I have to setup a NW BPM environment using Windows/Active Directory SSO. In the desired scenario, I would use UME to create BPM specific roles and/or groups and then I would associate: - specific AD users to UME groups or roles, and/or - associat
-
hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read throug
-
Why does my iPod touch 4 battery die quick and charge quick?
When i use my ipod the battery dies quickly and as soon as i put it on charge it charges fully in less than 15mins
-
I just downloaded the newest version of Adobe Reader to my MAC, I need help now please
The End user license agreement did not appear to sign and accept. So now when I open another site to download pdfs, it says I need to launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser. I cannot launch