How to get key name from parameter list
hi..
i want string from parameter list.. i hv already created parameter list like
ADD_PARAMETER (param_list_id, 'EMPID', TEXT_PARAMETER,'123');
ADD_PARAMETER (param_list_id, 'EMPNM', TEXT_PARAMETER, 'ABC');
ADD_PARAMETER (param_list_id, 'EMPADD', TEXT_PARAMETER, 'XXX');
i got value like '123' ,'ABC', 'XXX' using
eg. get_parameter_attr(param_list_id,'EMPID',aprmlist,avalue)
but i want key name like 'EMPID' , 'EMPNM', 'EMPADD' from param_list_id
is it possible to get this key name from parameter list ???
Thanks...
I cannot think of a way to do that. The code that reads the list is supposed to know the key names. That is sort of the point with parameter lists. If you need to have parameter lists that can be interepreted by some code that doesn't know about a specific list but knows how to interpret it by inspecting the key names, perhaps you can specify a separate parameter list with the key names as values and call the keys of that list something generic?
Similar Messages
-
How to get actual value from LOV list
Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
Thanks.Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
<html:select property="UserJobCompanyId"
disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
onchange="submitform();">
<html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>
</html:select>and I want to get CompanyID of selected Company.
Thanks, again. -
How to get multiple values from the list
I've a list of an item which I queried it from the database. I also created a button that will takes a selected items from the list when it was clicked. I used javabean to get the data from database.
<% // clicked on Select District Button
Vector vselectedDistrict = new Vector();
Vector vdistrictID = new Vector();
String tmpSelectDistrict = "";
tmpSelectDistrict = request.getParameter("bSelectDistrict");
if(tmpSelectDistrict != null)
// get multiple values from the list
String[] selectedDistrict = request.getParameterValues("usrTDistrict");
vselectedDistrict.clear();
vdistrictID.clear();
if((selectedDistrict != null) && (selectedDistrict.length != 0))
for(int i=0;i<selectedDistrict.length;i++)
vselectedDistrict.addElement(selectedDistrict);
vdistrictID = dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
for(int i=0;i<vdistrictID.size();i++)
out.println("district = " + selectedDistrict[i]); out.println("district ID= " + vdistrictID.get(i).toString());
%>
// get vdistrict from the database here......
<select name="usrTDistrict" size="5" multiple>
<% for(int i = 0; i< vdistrict.size(); i++)
%>
<option value="<%=vdistrict.get(i).toString()%>"><%=vdistrict.get(i).toString()%></option>
<%
%>
</select>
<input type="submit" name="bSelectDistrict" value="Select District">
Lets say the item that i selected from the list is 'Xplace' and I clicked on the Select District button,
what I got is this error message:
org.apache.jasper.JasperException: Unable to convert string 'Xplace' to class java.util.Vector for attribute usrTDistrict: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
So where is going wrong and what the message means?. Any help very much appreciated. ThanksThese are just guesses that might hopefully steer you in directions you haven't looked in yet.
I presume you used triangle brackets (< >) to avoid having the Jive Forum think it was the "italics" tag?
Are you certain this: dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
expects a Vector as its second parameter? And returns a Vector?
I don't believe you've shown how you use the javabean, or its code? Perhaps it should be rewritten to accept an array of strings instead of a Vector? -
How to get the value from select list to text box
Hi,
I have a select list i want to retrieve the value from select list to text box.
How can i do that???
Regards,
Sakthi.Hi Sakthi,
Yo can use the Java script for that..
Dynamically the value will come into text box.
Use the below script.
<script type="text/javascript">
function disFormItems()
var lReturn = $v(here your select list name)
alert(lReturn);
document.getElementById(here your text box name).value =lReturn; }
</script>Cheers,
Shan -
How to get total value from checkbox list?
I have a list of checkbox items - all number values. I want to then get the total value from all of the check items and add that value to the database. Can this be done?
Also, anyone know of one source where I can get detailed information on how to best use Web Apps and all of it's possibilities and limitations? Most of the tutorials that I have seen so far say that you can do most anything with Web Apps; however, the tutorial examples leave a lot of questions unanswered. I saw that Adobe has an article that shows how to build a basic web app and that it is "part 1" in a series. Anyone know where to find parts 2, 3, etc?
Thanks,Hi there,
Good day, i hope this will give you some ideas
for example this is your html
<input type="checkbox" name="test" value="1">1
<input type="checkbox" name="test" value="2">2
<input type="checkbox" name="test" value="3">3
<input type="checkbox" name="test" value="4">4
and this is your jquery script
<script type="text/javascript">
jQuery("input@[name='test']").click(function() {
var istrue = jQuery(this).is(":checked");
if(istrue == true) {
var urvalue = jQuery(this).val();
alert(urvalue);
</script>
hope this helps you -
How to get distinct values from a list and display in a ListView webpart.
Hi,
I have a requirement in which I need to pull unique/distinct values from a custom list and then display it via a listview webpart. Can any one suggest how this can be done.
If possible please share the CAMEL query to fetch distinct values from a custom list.
Thanks,
AnkitHi Ankit,
Is there any particular reason that the values need to be shown in a list view web part? Are you going to use that web part for filtering via web part connections?
I ask because the enterprise site collection features include the SharePoint List Filter web part, which may accomplish what you're looking for.
If you just need to display the values in a grid view, you might have more luck with the JavaScript Client Object Model. Try putting the following in a text file:
<style>
.CustomTableClass{display:table;table-layout:fixed}
.CustomRowClass{display:table-row;}
</style>
<div id="distinct_values_div" class="CustomTableClass">
<img src="/_layouts/loading.gif" />
</div>
<script language="JavaScript" type="text/JavaScript">
var siteUrl = '/sitecollection/web'; //use the actual subsite URL here
var listName = 'mylist'; // use the actual list name here
var field = "Title" // use the actual field you want to display here
var divToUpdate = document.getElementById("distinct_values_div");
var rowClass = "CustomRowClass";
ExecuteOrDelayUntilScriptLoaded(function(){
var clientContext = new SP.ClientContext(siteUrl);
var web = clientContext.get_web();
var lists = web.get_lists();
var list = lists.getByTitle(listName);
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query></Query><RowLimit>500</RowLimit></View>');
this.collListItem = list.getItems(camlQuery);
clientContext.load(collListItem,"Include ("+field+")");
clientContext.executeQueryAsync(
Function.createDelegate(this, this.onQuerySucceeded),
Function.createDelegate(this, this.onQueryFailed));
},"sp.js");
function onQueryFailed(sender, args){
divToUpdate.innerHTML = 'Unable to retrieve values: '+args.get_message());
function onQuerySucceeded(sender, args){
var allValues = [];
var listItemEnumerator = collListItem.getEnumerator();
divToUpdate.innerHTML = "";
while(listItemEnumerator.moveNext()){
var listItem = listItemEnumerator.get_current();
if(!containsString(allValues,listItem.get_item(field)){
var value = listItem.get_item(field);
allValues.push(value);
var newDiv = document.createElement("div");
newDiv.className = rowClass;
newDiv.innerHTML = value;
divToUpdate.appendChild(newDiv);
function containsString(strArray, text){
var contains = false;
for (var i=0; i<strArray.length; i++){
if(strArray[i]==text){contains = true; break;}
return contains;
</script>
Upload the text file to a library on the site, then add a content editor web part to a page where you want the distinct values to appear. In the content editor web part's properties, edit the Content Link so that it links directly to the text file. This
will cause the JavaScript to run on the page. -
How to get application name from a receive location?
Hi all,
I am trying to do a custom error application, and I want to notify system admin users that "the receive port XXXX has stopped in application YYYYYY".
Right now I do know which receive location that is being suspended. But I am not being able to get the application name, associated to this receive location (I can also get the ReceivePort, if it matters).
I've tried 2 ways:
> using WMI
> Using SQL (direct query in BizTalk databases - for testing).
I did not found any solution, even search table by table, i did not found a relation between Applications and receive location..
Anyone?
Thanks in advance
Ricardo BessaThe following SQL query should give you a result of every disabled receive location as well as it's receive port and application:
SELECT
RL.Name AS ReceiveLocationName
, RP.nvcName AS ReceivePortName
, APP.nvcName As Application
FROM [BizTalkMgmtDb].[dbo].[adm_ReceiveLocation] AS RL WITH(NOLOCK)
INNER JOIN [BizTalkMgmtDb].[dbo].[bts_receiveport] AS RP WITH(NOLOCK)
ON RL.ReceivePortId = RP.nID
INNER JOIN [BizTalkMgmtDb].[dbo].[bts_application] AS APP WITH(NOLOCK)
ON RP.nApplicationID = APP.nID
WHERE
RL.[Disabled] = -1
ORDER BY Application ASC
Christian @ IntegrationAdmin.com -
How to get file name from file adapter (Read Operation)
Hi All,
I am reading files from local location, in jca file i gave filename property =*.* ( which reads all files), and now I want to read the incoming file name inside bpel and I want to copy the file name to some variable. Is this possible?Yes, its possible.
In your receive activity,set below property in its properties tab:
<bpelx:property name="jca.file.FileName" variable="FileName"/>
Before that make sure to create a variable "FileName" of string type.
Whatever file your file adapter will read,its name will be stored in this variable.
Hope this helps.
Regards,
Karan
http://learn-oraclesoa.blogspot.com/ -
How to get tree structure from file list?
I have got following rows from my select query presenting a folder structure:
PATH
/KING/JONES/SCOTT
/KING/JONES/SCOTT/ADAMS
/KING/JONES/FORD
/KING/JONES/FORD/SMITH
/KING/BLAKE
/KING/BLAKE/ALLEN
/KING/BLAKE/WARD
/KING/BLAKE/MARTIN
/KING/BLAKE/TURNER
/KING/BLAKE/JAMES
/KING/CLARK
/KING/CLARK/MILLER
/PALO/TEMP
On base of this data I need to build tree in my application by effecient way.
Therefore i would like to achieve data (SELECT with two columns) as bellow:
FOLDER PARENTFOLDER
KING NULL
JONES KING
SCOTT KING/JONES
ADAMS KING/JONES/SCOTT
FORD KING/JONES
SMITH KING/JONES/FORD
BLAKE KING
ALLEN KING/BLAKE
WARD KING/BLAKE
MARTIN KING/BLAKE
TURNER KING/BLAKE
JAMES KING/BLAKE
CLARK KING
MILLER KING/CLARK
PALO NULL
TEMP PALOIs this possible to do it on SQL level(not PL SQL)?
ThanksPerhaps something like this?
SQL> ed
Wrote file afiedt.buf
1 with t as (select '/KING/JONES/SCOTT' as path from dual union all
2 select '/KING/JONES/SCOTT/ADAMS' from dual union all
3 select '/KING/JONES/FORD' from dual union all
4 select '/KING/JONES/FORD/SMITH' from dual union all
5 select '/KING/BLAKE' from dual union all
6 select '/KING/BLAKE/ALLEN' from dual union all
7 select '/KING/BLAKE/WARD' from dual union all
8 select '/KING/BLAKE/MARTIN' from dual union all
9 select '/KING/BLAKE/TURNER' from dual union all
10 select '/KING/BLAKE/JAMES' from dual union all
11 select '/KING/CLARK' from dual union all
12 select '/KING/CLARK/MILLER' from dual union all
13 select '/PALO/TEMP' from dual
14 )
15 --
16 -- END OF TEST DATA
17 --
18 select distinct substr(path,instr(path,'/',1,rn)+1,decode(instr(path,'/',1,rn+1),0,length(path)+1,instr(path,'/',1,rn+1))-instr(path,'/',1,rn)-1) as folder, substr(path,2,instr(path,'/',1,rn)-2) as parent
19 from t
20 cross join (select rownum rn from dual connect by rownum <= (select max(length(regexp_replace(path,'[^/]'))) from t)) x
21* where instr(path,'/',1,rn) > 0
SQL> /
FOLDER PARENT
BLAKE KING
SCOTT KING/JONES
JAMES KING/BLAKE
MARTIN KING/BLAKE
SMITH KING/JONES/FORD
KING
WARD KING/BLAKE
ADAMS KING/JONES/SCOTT
FORD KING/JONES
TURNER KING/BLAKE
MILLER KING/CLARK
PALO
TEMP PALO
JONES KING
CLARK KING
ALLEN KING/BLAKE
16 rows selected.
SQL> -
Getting user name from sopa header
How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...
I din't get this with SRemoteUser
1. i've enabled " Do Not Use SOAP Envolope"
2.Enabled ASMA
3.Variable Transport Binding .
used the following code as well:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
conf.get(user);
But not value in it.. Correct me if iam wrong.. -
How to get each value from a parameter passed like this '(25,23,35,1)'
Hi
One of the parameter passed to the function is
FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
pi_flag_codes will be passed a value in this way '(25,23,35,1)'
How to get each value from the string
like 25 first time
23 second time
35 third time
1 fourth time
I need to build a select query with each value as shown below:-
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 25 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 23 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
(SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 35 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
group by t2.org_id) q3,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 1 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.chris227 wrote:
I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
select
regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
from dual
S1 S2 S3 S4
"25" "23" "35" "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
If t2.att_type is type of number you will do:
t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
I am using oracle 10g.
In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
say 25 is at 1 position.
23 is at 2
35 is at 3
1 is at 4.
the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
Please see the code I wrote for it, But the select query is having error:-
BEGIN
IF(pi_flag_codes IS NOT NULL) THEN
SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
*(SELECT '(25,23,35,1)' V_CNT FROM dual);*
DBMS_OUTPUT.PUT_LINE(V_CNT);
-- V_CNT := 3;
FOR L_CNT IN 0..V_CNT LOOP
if L_CNT=0 then
V_S_POS:=1;
V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
else
V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
end if;
if L_CNT=V_CNT then
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
else
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
end if;
VN_ATYPE := ' t2.att_type = ' || V_ID;
rec_count := rec_count +1;
query_no := 'Q' || rec_count;
Pls help me with fetching each value to build the where cond of the select query along with the query number.
Thank You. -
How to get key and text value of field "TNDRST" in VTTK from R/3 into BI
There is one field call "TNDRST(Tender Status)" in SAP table VTTK in R/3. We can find key value, but we are unable to find text for this field in VTTK. However we can see text value if we double click domain:TNDRST and go to value range.
Questions, how to get key value and text of TNDRST together in BI. Do we need to create a master data source for TNDRST text information in R/3 and extracting into BI, if yes, how to? Are there any easy way to do it??
Thanks,
SudreeHi Sudree,
You need to create a generic Text Datasource to extract this information into BI System.
1. Create a generic DS based on Table: DD07T
2. The fields should be put in the extract structure.
DOMNAME (Make this as Selection in the DS ) -
Filter the Domain Name
DOMVALUE_L -
Key Value of Tender Status
DDTEXT -
Text / Description
DDLANGUAGE -
Language
3. DD07T is the table with all the Domain names & their values, so in the Infopackage enter the Selection Value for DOMNAME as 'TNDRST' and then run it.
Or you can create a view out of this table based on DOMNAME filter as 'TNDRST'.
Regards,
Chathia. -
Hi All,
how to get key from mdx query ?
example :
SELECT [Measures].[67822GFASOU7KUT6FKHSQ34FV] ON COLUMNS NON EMPTY CROSSJOIN([ZCOMPANY].MEMBERS, [ZMILL].MEMBERS) ON ROWS FROM ZODS_GL/ZODS_GL_001
the result from this mdx query are zcompany text and zmill text, how to get company key and mill key ?
Regards
JeiMinghi Jeiming,
to get key in mdx, you can try something like
[ZCOMPANY].[LEVEL01].MEMBERS
properties [ZCOMPANY].[2ZCOMPANY]
following threads may useful
Extracting texts with MDX
MDX Statement - display only keys for characterstics and their dis. attrib.
hope this helps. -
I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?
Welcome to the Apple Community.
If you haven't turned find my phone off on the device, it should just reappear next time it is connected to an appropriate network. If you have turned off find my phone, turn it back on. -
FRM-47007: Cannot get parameter WUC_DATA attributes from Parameter List: in
Hi,
I am pretty sure this is a webutil message. I am running 10g through OC4J, all was working well one minute then on startup of the form I get these 2 message 4 or 5 times:-
FRM-47007: Cannot get parameter WUC_DATA attributes from Parameter List: invalid list ID.
followed by:
FRM-47007: Cannot get parameter WUC_DATA_MULTIPART attributes from Parameter List: invalid list ID.
These 2 message are repeated 4 or 5 times then things appear to run fine, I can open and read files, transfer them etc. The only thing I can think I have done differently is add a bean to a data block but when I remove the bean and restart the OC4J I still get the messages.
Any ideas?Fixed,
I dropped the WEBUTIL object group then added it again by adding the object library then subclassing it to the object group. The error messages are gone.
Cheers
Maybe you are looking for
-
One set of clips won't sync when trying to create a Multicam clip
I am trying to create a multicam clip using one long audio track, several clips from one camera and several clips from another camera. All three have audio recorded from the same shoot. One camera angle successfully synchronises with the audio track,
-
Best way to install oracle server + odp on same machine
Hello, I've been having problems with this configuration: Win 2003 x64 R2 + IIS Server + Oracle DataBase 10g Release 2 102010_win64_x64_database + 10.2.02 patchset Win2003 x64 + ODAC 10.2.02 x64 Beta So far, I've installed all in the same Oracle_home
-
Unable to Update to Adobe Reader 8.1.1
I have tried unsuccessfully several times to upload and install Adobe Reader 8.1.1. I can initiate the installation, but it always indicates it was an unsuccessful effort. Why?
-
Programs won't launch & finder crashing after recent software updates
Finder and most programs won't launch after a software update. I was able to run Cocktail and repair permissions. I've restarted a few times, and ran disk utility from the start up disk to no avail. Any suggestions? thanks
-
What do I download to watch movies online
WHat do I download to watch movies online?