How to get a lookup value?
HelloI'm looking how to get the value of the select list of an account by having only the Id of the account. I don't know if it is possible so I use this query:
-----
function getAccountInfo (rowid) {}
soapAction var = ' document / urn: crmondemand/ws/account/10 / 2004:AccountQueryPage ";
var miSoap = ' < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' > < soapenv:Header /------> < soapenv:Body > < ns:AccountWS_AccountQueryPage_Input xmlns:ns = "urn: crmondemand/ws/account/10/2004" > \n ";
miSoap += ' < ns:UseChildAnd > true < / ns:UseChildAnd > \n ";
miSoap += ' < ns:StartRowNum > 0 < / ns:StartRowNum > \n ";
miSoap += ' < ns:PageSize > 10 < / ns:PageSize > \n ";
miSoap += ' < acc:ListOfAccount xmlns:acc = "urn: / xml/crmondemand/account" > \n ";
miSoap += ' < acc:Account > \n ";
miSoap += ' < acc:AccountId > = \ "+ rowid +'\ ' < / acc:AccountId > \n";
miSoap += ' < acc:AccountName /------> \n ";
miSoap += ' < acc:AccountType /------> \n ";
miSoap += ' < acc:CallFrequency /------> \n ";
miSoap += ' < / acc:Account > \n ";
miSoap += ' < / acc:ListOfAccount > \n ";
miSoap += ' < / ns:AccountWS_AccountQueryPage_Input > < / soapenv:Body > < / soapenv:Envelope > ';
Return ((miSoap, SOAPAction) SendQuery);
}
-----
The problem of this query is that it does not provide the value of the list of choices, but only the picklits ID or default value in the choice list. I didn't need all because the values had been renamed then what I question is the value of the list of choices.
Thanks and greetings
Hello
I don't think that you can be able to get the display of the drop-down list of values by using Web services, it will always return the lookup ID values.
It is recommended to keep the two identical values (display value and the value of the Id).
If someone has renamed/changed the display of the value of the drop-down list value then you must use existing Id values or disable the existing value of the selection list and create a new value in the choice list that has the same value display and the value of the ID.
concerning
Goud
Tags: Oracle
Similar Questions
-
How to get the decimal value of a string of international currency
Hi all
How to get the decimal values to a string of international currency.
Finally, we get to the real problem.
You can use location functions or write your own using string functions already mentioned...
http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/internationalization/
-
full outer join: how to get without null values?
full outer join: how to get without null values?Hello
Please go well this url
http://asktom.Oracle.com/pls/asktom/f?p=100:11:999478429860455:P11_QUESTION_ID:6585774577187
Thank you
Prakash P -
DVT:pivotFilterBar - how to get the selected values of the filter
Hi all
I have a question: how to get the selected values from the pivot table filter bar programmatically?
I tried to use
but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
Environment: JDev 11.1.1.3.0 without tasks.
Thank you
MiroslawHello
You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:
Download the template of the bar pivot filter instance
QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
ListcriterionList = conjunctionCriterion.getCriterionList ();
for (int i = 0; i)<_criterionList.size(); i++)="">
AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion._selected is the currently selected value
Selected object = criterion.getValues () .get (0);System.out.println (_selected);
}Hope that helps,
Chadwick -
How to get the RGB value of a pixel in a psd document using scripting Photoshop
Hi, guys! Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop? I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!
Here is an example...
var originalUnits = app.preferences.rulerUnits; app.preferences.rulerUnits = Units.PIXELS; var doc = activeDocument; var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1)); var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5)); var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14)); alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3); var decColour = eyeDropperRGB(40,doc.height-14); alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]); app.preferences.rulerUnits = originalUnits; function GetHexColour(reqHex){ var out=''; for(No in colours = reqHex){ out = out.concat(zeroPad(d2h(reqHex[No]),2)); } return out; }; function eyeDropperRGB(x,y) { var x2 = x + 1; var y2 = y + 1; var out = new Array(3); activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false); for(ch in list = ["Red", "Green", "Blue"]) { histogram = activeDocument.channels[list[ch]].histogram; for (i = 0; i <= 255; i++) { if (histogram[i]) { out[ch] = i; break; } } } return out; }; function d2h(d) {return d.toString(16);} function zeroPad(n, s) { n = n.toString(); while (n.length < s) n = '0' + n; return n; };
-
How to get the return value from Java runtime.getRuntime.exec?
I am running shell from a (GR 11, 2) Oracle database commands on aix.
But, I would get a return value of a shell comand... as you get with "echo $?"
I use a code like
but I do not get a return value... because I don't know how to get the return value...CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS import java.io.*; public class Host { public static int executeCommand(String command) { int retval=0; try { String[] finalCommand; finalCommand = new String[3]; finalCommand[0] = "/bin/sh"; finalCommand[1] = "-c"; finalCommand[2] = command; final Process pr = Runtime.getRuntime().exec(finalCommand); pr.waitFor(); } catch (Exception ex) { System.out.println(ex.getLocalizedMessage()); retval=-1; } return retval; }; /
Published by: user9158455 on 22-Sep-2010 07:33Hello
Your pr.exitValue () has tried?
I think you also need a finally block that destroys the sub-process
Concerning
Peter -
Can I know how to get the 2 peak values v1 and v2 and 2 duration times t1 t2.
Since there is a small amplitude noise, difficult to use the Max simplely.
May need to use a filter such as wavelets or TREE to Denoise it first. Can I know how to use, any Toolbox in labview. How do the curve smooth first.
Thank you.
I can't watch your vi now (I'm at work), but if your signals are long enough, you might consider a median filter. You can set the number of points before and after use. I found that it is useful for some smoothing problems (not all).
-
I use lv 8.5 and teststand 4.0.
I did a step type custom and recorded at the MyTypes.ini in pallets of type.
I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.
T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.
But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.
Using joint file, how to get the setting custom step type values I put in *.ini?
Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.
Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?
I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.
Everyone knows Q2?
Thank you.
-
How to get the TextInput value
I have written following code:
var wpisz:TextInput = new TextInput(); wpisz.setPosition(300,500); wpisz.text = "";
What I'm trying to do is get this text value after the user clicks the button. If user enter value then click on the button and then in the entered label value is displayed. How to do this?
Try something like this:
// add imports here // set SWF params here public class MyApp extends Sprite { private var text_input : TextInput = new TextInput(); private var button : LabelButton = new LabelButton(); //////////////////////////////////////////// public function MyApp() { super(); // set attribute location and size information here this.addChild( this.text_input ); this.button.label = 'Press Me'; this.button.addEventListener( MouseEvent.CLICK, DoClick ); // set btn size and location here this.addChild( this.button); this.stage.nativeWindow.visible = true; } //////////////////////////////////////////////// private function DoClick( event : Event ) : void { this.button.label = this.text_input.text; } }
It has not been compiled or tested but you should get on your way.
BTW, there are a lot of ActionScript, Adobe Flex and Adobe AIR examples on the web to use Basic controls and events.
Good luck.
-
How to get the fnd_profile.value in the host program
Hi all
How to get the FND_PROFILE. VALUE('ORG_ID') in the host program.
I loved not below, but it failed.
v_return =' $ORACLE_HOME/bin/sqlplus - s $FCP_LOGIN < < END
set pagesize 0
trigger the echo
fnd_profile. Value ('ORG_ID');
EXIT;
END '
echo $v_return
but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
Kind regards
UVA
> but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
.. .who is the same thing that will happen if you run SQL * more and type "fnd_profile.value...". »
Assuming that fnd_profile.value is a function, you must select from the something (say double) or assign to a variable.
-
How to get the lov value(true/false) that is running by pressing the F3 function key
Hello
I mapped key F3 function for list of values (lov), pressing F3 on the element of text (with associated lov) poster lov, but here the lov is implicitly run, so I am unable to get the value of lov(true/false), how to get the true or false value from the lov.
I use Oracle forms 11 GR 2.
What exactly do you mean by "the true or false value of the lov? Want to know if the user chose something from the lov. If so, you can create a KEY-LISTVAL-trigger on your textitem with something like
IF SHOW_LOV('THE_NAME_OF_THE_LOV') THEN -- do something here END IF;
-
How to get the current value of db in backing bean
Hello
I use jdeveloper 11.1.2.3.0
I would like to know how I could access the old value of an attribute in backing bean.
I know I can get it in terms of EntityImpl with the getPostedAttribute function,
but as I see that I'm not allowed to access this function in the ViewImpl.
I get this error:
Error (151,33): getPostedAttribute (int) has protected access to oracle.jbo.server.EntityImpl.
Could you help her?
What is the right way to get the current value on db in backing bean?
Thank you very much!You can add a transitional attribute to the entity object to hold the old value of the desired attribute, then you can add this attribute to the view object.
Check [url http://www.youtube.com/watch?v=iKVIiK0FBXI] retrieve the previous value of an attribute ADF BC -
How to get the checkbox value when value list changed in the classic report
Hello
I worked with apex 4.2 and I create normal classic report with a checkbox column and a single column change to select list (named loved) now, when I want change to user list
take the value of the checkbox element and display it in the message.
SQL for the report
{
SELECT
"" "< INPUT TYPE ="checkbox"NAME ="f01"VALUE =" "
|| SEQ
|'">"SEQ, "
ID,
DEPT_NO,
EMP_NAME} I change the column attributes of Dept_NO to display as the selection of the name of the Department (named lov) list.
now, I want when change of user name of the Department, the value of the MESSAGE ALERT SHOW IN SEQ
I create JavaScript on the page
function test (pThis) {}
var f01_value = $('select[name="f01"]').value;
Alert ("#SEQ:" + f01_value);
}
< /script >
I call this javascript function when the change in the list, but the value undefined...
My Question:
How can get this value or any value of the point in reports
concerning
AhmedHello
Check your page now.As mentioned earlier, you must use APEX_ITEM. CHECKBOX2.
APEX_ITEM.CHECKBOX2(2,EMP.EMPNO,null,null,null,'f02_'||lpad(ROWNUM,4,'0')) NO,
And the javascript function will be
You cannot use $v to get the value of the checkbox element such that it works differently for the boxes, see http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/javascript_api.htm #BGBGDGIH.
Therefore, you use the jQuery val().See you soon,.
-
How to get 3table of values in the row of acronym in 11g
Hi all
I have 3 tables,
In all ck_no tables is common.Tab1 Ck_no amt 1 2000 Tab2 Ck_no Line amt 1 1 1000 1 2 1000 Tab3 Ck_no Line sub amt 1 1 1 500 1 1 2 500 1 2 1 100 1 2 2 200 1 2 3 700
Since the 3 tables above, I need the output in the following format,
Can someone help me in this?Amt1 amt2 amt3 amt4 amt5 amt6 amt7 amt8 amt 9 2000 1000 1000 500 500 500 100 200 700
Thank you
Kind regards
Gurujothi
Published by: Gurujothi on July 9, 2012 20:46
Published by: Gurujothi on July 9, 2012 20:47Gurujothi wrote:
I know how to get the values in a row for a single column,
...
but I get the error,Too Many values
How do I change this?
Please post your data in the example, the expected results of these data and explain the logic so that we can understand how the data relate to each other.
In your original post, it is not clear how amt4, amt5 abd amt6 therefore show them all 500 when there are only two 500 values in the source data.
SQL> ed Wrote file afiedt.buf 1 with Tab1 as (select 1 as ck_no, 2000 as amt from dual) 2 ,Tab2 as (select 1 as ck_no, 1 as line, 1000 as amt from dual union all 3 select 1, 2, 1000 from dual) 4 ,Tab3 as (select 1 as ck_no, 1 as line, 1 as sub, 500 as amt from dual union all 5 select 1, 1, 2, 500 from dual union all 6 select 1, 2, 1, 100 from dual union all 7 select 1, 2, 2, 200 from dual union all 8 select 1, 2, 3, 700 from dual) 9 -- 10 -- END OF TEST DATA 11 -- 12 select ck_no 13 ,max(decode(rn,1,amt)) as amt1 14 ,max(decode(rn,2,amt)) as amt2 15 ,max(decode(rn,3,amt)) as amt3 16 ,max(decode(rn,4,amt)) as amt4 17 ,max(decode(rn,5,amt)) as amt5 18 ,max(decode(rn,6,amt)) as amt6 19 ,max(decode(rn,7,amt)) as amt7 20 ,max(decode(rn,8,amt)) as amt8 21 ,max(decode(rn,9,amt)) as amt9 22 from ( 23 select ck_no, amt, row_number() over (partition by ck_no order by ord, line, sub) as rn 24 from ( 25 select 0 as ord, ck_no, 0 as line, 0 as sub, amt from tab1 union all 26 select 1 as ord, ck_no, line, 0 as sub, amt from tab2 union all 27 select 2 as ord, ck_no, line, sub, amt from tab3 28 ) 29 ) 30* group by ck_no SQL> / CK_NO AMT1 AMT2 AMT3 AMT4 AMT5 AMT6 AMT7 AMT8 AMT9 ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1 2000 1000 1000 500 500 100 200 700
-
How to get the Max value in Essbase
Hello
I have problem to get the max value of 3 years in Essbase.
How can I get the max value of Dec 2009, Dec 2010, Dec 2011.
Suppose the value of Dec 2009 = 1000, dec 2010 = 1500 and Dec 2011 = 2000
I want to get the max value of these three value, how can I do this in the Essbase calculation Script.
Any idea?
Thank you.
Kind regards
JoniYou did not specify if year and period are there separate dimensions, in any case as always a number of different possbilities and I don't have much time today to think about, but only one method can be to use @MAXRANGE
DIFFICULTY (other members to set, 'Dec')
'MemberToStoreAgainst' = @MAXRANGE("MemberToFindMaxRangeFor","2009:"2011");
ENDFIX
See you soon
John
http://John-Goodwin.blogspot.com/
Maybe you are looking for
-
I uninstalled Snap.do but not completely erase my whole history, nothing has worked so far. Whenever I open a new tab in Firefox, Snap.do is like the search bar. What a pain!
-
Had to remove password on the Satellite A660-18
Hello I have problem with my laptop Satellite A660-18 access, it asks for the password, I have not to remember (or know). I bought it to the United Kingdom in 2010, since it is the first time I faced this problem. Is there any possibility to get this
-
Store tabular data in file TDM tiara.
Hello Is it possible to store tables in CT files? After processing the data, my results are a list of values that is in table form. And normally save us only the TOC file (and not the file TDR), in this case if I want to save the table, that I have p
-
I signed up for Windows live on Facebook. MY MISTAKE! How can I cancel it? I had my email account: * address email is removed from the privacy * for many years. NOW I CAN'T ACCESS IT. Now, he asks me my password which I do not remember. When
-
Please let me know if a resolution for this