in LOV query to get the Responsibility_id using profile... but when I switch to another responsibility always the LOV shows the previous values of RESP.
Hello
I have the choice of Message box, in which I'll show the inventory list organizations are assigned to responsibility. I just the following query in the query of LOV...
Select hou.NAME separate organization_name, mp.organization_id
of mtl_parameters mp
, hr_organization_units hou
oa org_access
where mp.organization_id = hou .organization_id
and hou.organization_id = oa.organization_id
and oa.responsibility_id = fnd_profile.value ('RESP_ID')
organization_id asc order
But first let's say after the OA Core bounce if I open a responsibility which is to have access to 5 associations of the inventory, and then in the message of choice is showing correctly... But when I go to another responsibility that is to have access to a single inventory, always the choice of Message body shows the previous inventory 5 Orgs who is to have access to the prior responsibility.
Pointers on this?
Thank you
Clarriiza
Use choiceBean.setPickListCacheEnabled (false) to PR.
See you soon
AJ
Tags: Oracle Applications
Similar Questions
-
Query to get the previous value
Hello guys,.
I have a problem to do a simple Oracle's SQL query.
I will give an example. Imagine a table (test) with the following data:
DATE DEPRECIATION AMORTIZATION
-----------------------------------------------------------------------------------------------
01/01/2013 1.00 1.00
02/05/2013 1.00 2.00
03/08/2013 1.00 3.00
04/12/2013 1.50 4.50
13/05/2013 1,00 5.50
22/06/2013 1,00 6.50
17/07/2013 1,00 7.50
08/11/2013 1.00 8.50
27/09/2013 1,00 9.50
10/01/2013 0.50 10.0
11/01/2013 1,00 12.0
12/01/2013 1.00-13.0
If I want to recover the accumulated depreciation from June to December, is simple:
SELECT DEPRECIATION
OF THE TEST
WHERE DATE BETWEEN to_date ('01-06-2013 ',' DD - MM - yyyy")
AND to_date ('01-12-2013 ',' DD - MM - yyyy")
However, I would like to create a field that question to bring the accumulated depreciation of the
previous month (month of May), without changing the WHERE clause. Where I work, we use views to make such a request, but the performance is terrible.
Anyone know the solution to this problem or can offer some advice?
1f7629cd-28fe-4FC3-9CA0-2a2e51824e79 wrote:
Solomon, this is the result I want. However, in a dynamic way.
I don't have a need to communicate their data.
I think you speak WITH clause. You don't commit CREATE TABLE + INSERT, WITH the clause is a quick way to create your table on the fly. All you need is:
Select t.*,
accumulated_deprecation - prev_mon_accum_deprecation deprecation
t
where dt between to_date('01-06-2013','dd-MM-yyyy') and to_date('01-12-2013','dd-MM-yyyy')
/
Of course, you must change the table names and column in your names. I don't know what happened to your last post, but on this basis:
SELECT m.dat_mov_patr,
m.val_valor_real,
m.val_depr_acumulada,
m.val_depr_acumulada - m.val_valor_real
OF mov_patrimonial m
WHERE m.dat_mov_patr > to_date (January 3, 2005 ', "dd-MM-yyyy")
/
And it's all simple arithmetic - no need to use all functions. Column val_depr_acumulada accumulated disapproval of the month 1 to the current month. Column val_valor_real is the disapproval of the current month. Val_depr_acumulada - val_valor_real is therefore accumulated disapproval of the month 1 month.
SY.
-
Dynamic SQL query to get the unique value of list in a column
I have two tables: tblWorkers and tblSkills. tblWorkers has a column, skills, which is populated by a field of multiple-checkbox with one or more skill_IDs of tblSkills, so each tblWorkers.Skills consists of a list of one or more comma-delimited values. For any Skill_ID, I need to generate a list of all workers with the appropriate skills, so I tried to do something in the direction of SELECT WorkerName FROM tblWorkers WHERE IN of skills (skills, #FORM. Skill_ID #)... or WHERE skills (ListFind (skills, #FORM. Skill_ID #))... etc.? My results (once I have had data type mismatches of the road) return all workers, not just those with the desired skills. There must be an easy way to do... How people with a little more experience CF/SQL I do this?> each tblWorkers.Skills consists of a list of one or more comma-delimited values
This is your problem. You store a list of values that you want to access power/query separately in a single column. You will have to burst in a separate table.
TblWorkersTblSkills
TblWorkerSkills
mapping table of many workers with skills.If you do not change your data model now, you will constantly be butting your head against that.
-
Get the previous value of the sequence
Oracle version
10.2.0
sequence
Main tableCREATE SEQUENCE ADM_SQ_TABLE_GROUP START WITH 21 MAXVALUE 999999999999999999999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER;
Insert valuesCREATE TABLE ADM_TL_TABLE_GROUPMST ( TBGM_KEYID VARCHAR2(6) NOT NULL, TBGM_NAME VARCHAR2(50) NOT NULL, TBGM_CODE VARCHAR2(15) NOT NULL, CONSTRAINT PK_ADM_TL_TABLE_GROUPMST PRIMARY KEY (TBGM_KEYID), CONSTRAINT UK_TBGM_CODE UNIQUE(TBGM_CODE) );
Table DetailsINSERT INTO ADM_TL_TABLE_GROUPMST VALUES (adm_sq_table_group.NEXTVAL, 'PCS TABLE GROUP', 'PCS');
Insert the scriptCREATE TABLE ADM_TL_TABLE_GROUPDTL ( TBGD_KEYID VARCHAR2(8) NOT NULL, TBGD_MASTERID VARCHAR2(6) NOT NULL, TBGD_TABLENAME VARCHAR2(30) NOT NULL, TBGD_ORDER NUMBER(2) NOT NULL, CONSTRAINT PK_ADM_TL_TABLE_GROUPDTL PRIMARY KEY (TBGD_KEYID), CONSTRAINT FK_TBGD_MASTERID FOREIGN KEY (TBGD_MASTERID) REFERENCES ADM_TL_TABLE_GROUPMST(TBGM_KEYID) );
How to get previously generated sequence valuesINSERT INTO ADM_TL_TABLE_GROUPDTL VALUES (adm_sq_table_group.NEXTVAL, adm_sq_table_group.CURVAL, 'PCS_TL_MST', 1);
Use the VOTING class if you use PL/SQL
-
How set the value of a LOV in CO prgramatically and get the Pkey value?
Hello
I need to get the Primaykey LOV will return and set a value for a LOV, say ItemLOV in a page through CO. How can I achieve this?
Req:
1. set the nom_element, say "DELL_1618" so that the page displays this in the LOV.
2 get the PK value returned by LOV in the backend in an attribute of VO say Item_ID, ' 100009881'.
Thank you
Sicard.Hi Santosh,
Sorry, I responded to general LOV scenario, but want to put it right,
You need run your LOV query to the controller for the "DELL_1618" element using the prepared command, get the value of the value display and Id and assign the LOV and FormVlaue in the PR of the controller.
Kind regards
Out Sharma -
I can't use the link 'Check the seats' on the website of Delta Airlines when I use Firefox, but Safari works fine. I get the message "not available at this time" when you use Firefox, but when I go on Safari it works just fine. I love Firefox but it sucks!
This problem may be caused by corrupted cookies.
Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Firefox > Preferences > advanced > network > storage (Cache) offline: 'clear now '.
'Delete Cookies' sites causing problems:
- Firefox > Preferences > privacy > Cookies: "show the Cookies".
-
IOM sql Query to get the status of the failed task
Hello world
We have an obligation as we need to get the status of a particular task (say Create User in OID - Completed\Rejected status resource) for the particular user. We are able to get the status of the provisioed of resources to the user but not the status of the special mission which is trigerred for the user.can someone put some light on it. We must have the SQL query to do this.
Thanks in advance.
Kind regards
MKNHello
Use this query to get the status of the task, also check the coomentsSELECT USR. USR_LOGIN, OSI. SCH_KEY, ANN. SCH_STATUS, STA. STA_BUCKET OF
OSI, CHS, STA, MIL, TOS, PKG, OUEDRAOGO, USR, OBJ, OST
WHERE OSI.MIL_KEY = MIL.MIL_KEY
AND ANN. SCH_KEY = OSI. SCH_KEY
AND STA. STA_STATUS = SCH. SCH_STATUS
AND TOS. PKG_KEY = PKG. PKG_KEY
AND MIL. TOS_KEY = TOS. TOS_KEY
AND OUÉDRAOGO. USR_KEY = USR. USR_KEY
AND OUÉDRAOGO. OST_KEY = OST. OST_KEY
AND OST. OBJ_KEY = OBJ. OBJ_KEY
AND OSI. ORC_KEY = OUEDRAOGO. ORC_KEY
AND OBJ. OBJ_NAME = "User AD".
AND OST. OST_STATUS = "Provisioning" - filter accordinglly
AND STA. STA_BUCKET = 'pending' - filter accordinglly
AND PKG. PKG_NAME = "AD User" - filter accordinglly
AND MIL.MIL_NAME = 'System' - filter accordinglly Validation
;
Thank you
Kuldeep -
Query to get the data of the column and the metadata in the same set of results.
Is it possible to build a query to get the values of the columns in a table and also be able to get some metadata (data type, data_length, data_precision, data_scale) for columns in the same set of results.If I use a join, have a common value to join on the two tables?
you use a cross join, not requiring common values.
create table T (n number, d date, v varchar2(30)); insert into T values (1,sysdate,'ABC'); commit; select C.column_name, c.data_type, c.data_length, case c.column_id when 1 then to_char(T.N) when 2 then to_char(T.D) when 3 then T.V end VALUE from USER_TAB_COLUMNS C, T where C.table_name='T' order by c.column_id;
-
How to write a simple select query to get the data of the table as an XML.
How to write a simple select query to get the data of the table as an XML. In the query, I'm just adding items below which i need be there in the XML document
I have need to add the root tag as well in the beginning and the end of < root > < / root > this xml file. Please advice if this is possible with the select queryselect '<test_tag>'||EMP_NAME||'</test_tag>','<date>'||sysdate||'</date>' from temp_table where id_num BETWEEN 1 AND 10;
without using XMLGEN, XMLQUERY or any other packages built and function?I need to URL escapes with the UTF-8 code points that we have already achieved using the utl_http package. Please help how to do that without using the utl_http package.
What is wrong with him?
At present, the only way I can think of to avoid a call to UTL_HTTP. SET_BODY_CHARSET is to write your own little wrapper.
In this way, you can specify the Boolean parameter or omit it if you choose to use named parameters:SQL> create or replace function my_url_escape (url in varchar2) 2 return varchar2 3 deterministic 4 is 5 begin 6 return utl_url.escape(url, false, 'AL32UTF8'); 7 end; 8 / Function created SQL> select my_url_escape('http://some.uri.com/param?lang=fr&text=contrôle') from dual; MY_URL_ESCAPE('HTTP://SOME.URI -------------------------------------------------------------------------------- http://some.uri.com/param?lang=fr&text=contr%C3%B4le
-
I never use MSN but when I try to uninstall it I get "sorry impossible to uninstall you must be connected to the internet" even though I am connected via DSL how can I overcome this obstacle and uninstall?
original title: uninstall msnHello
I suggest you to see link and check if it helps.
http://answers.MSN.com/solution.aspx?SolutionID=115dc6c5-4ae7-4e38-8e0b-3eac07d020faThe question you have posted is related to MSN and would be better helped by MSN support. Please visit the link below which offers the best support.
https://support.MSN.com/default.aspx?mkt=en-us&WA=wsignin1.0&St=1&wfxredirect=1For reference:How to contact MSN customer serviceIt will be useful. -
SQL query to get the NULL records after the last matching flag
I have a xx1 table with id and flag columns. So I want the data in this table, after the last flag matched. I want that data to id 7 in the rooms. Even if the id 2,3,5 are null flag 'Y' was at 6. ID so I need a query to get the data of the xx1 table after the last correspondence flag (from 7 to 9 id).
SQL > create table xx1
2 (identification number,
3 flag varchar2 (10));
Table created.
SQL > insert into xx1 values (1, 'Y');
1 line of creation.
SQL > insert into values xx1 (2, null);
1 line of creation.
SQL > insert into values xx1 (3, null);
1 line of creation.
SQL > insert into xx1 values (4, 'Y');
1 line of creation.
SQL > insert into values xx1 (5, null);
1 line of creation.
SQL > insert into xx1 values (6, 'Y');
1 line of creation.
SQL > insert into values xx1 (7, null);
1 line of creation.
SQL > insert into values xx1 (8, null);
1 line of creation.
SQL > insert into values xx1 (9, null);
1 line of creation.
SQL > select * from xx1.
FLAG OF THE ID
---------- ----------
1. IS
2
3
4. IS
5
6. IS
7
8
9
9 selected lines.
SQL >
Hello
user11164339 wrote:
Hi Frank - when I run the query, I don't see the results data.
I get
FLAG OF THE ID
----- ----------
7
8
9
What you do differently?
-
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; };
-
Query to get the last change in the particular column
Hello
[Update]
I need help to find the last change to a particular to a table column.
tell the table as
t_address (phone_number, first_name, user_id, change_date)
I need to find what was her last phone number change happened.
Well, the date of change is updated for any changes in this table. I want to understand the change_date only when a particular field has changed (from the previous value). It seems a little complicated for me.
t_address (phone_number, first_name, user_id, change_date)
say for any change of phone_number, name it will be an entry in this table t_address. and change_date will be the inserted date.
say
USR_ID phone_number name change_date
Hari 123 Henderson 12/12/2011
Hari hari 123 12/11/2011
Hari hari 345 12/10/2011
now my requirement is to get 12/11/2011 as on that particular date, the phone number has changed from previous value.
Please suggest.
Published by: user7807429 on Sep 10, 2012 11:51Hello
WITH t_address AS ( SELECT 'hari' usr_id, 123 phone_number, 'harinath' first_name ,DATE '2011-12-12' change_date FROM dual UNION ALL SELECT 'hari' usr_id, 123 phone_number, 'hari' first_name ,DATE '2011-12-11' change_date FROM dual UNION ALL SELECT 'hari' usr_id, 345 phone_number, 'hari' first_name ,DATE '2011-12-10' change_date FROM dual ) SELECT usr_id ,phone_number ,prev_phone_number ,first_name ,change_date FROM ( -- Select only the rows where the phone number changed -- and max phone change date for each user SELECT usr_id ,phone_number ,first_name ,change_date ,prev_phone_number ,MAX(change_date) OVER (PARTITION BY usr_id ORDER BY change_date RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) max_change_date FROM ( -- Select the data together with the phone number of the previous row SELECT usr_id ,phone_number ,first_name ,change_date ,LAG(phone_number) OVER (PARTITION BY usr_id ORDER BY change_date ) prev_phone_number FROM t_address ) -- check for difference with decode because phone_number might be NULL WHERE DECODE( prev_phone_number, phone_number, 1, 0 ) = 0 ) WHERE change_date = max_change_date; USR_ID PHONE_NUMBER PREV_PHONE_NUMBER FIRST_NAME CHANGE_DATE ------ ------------ ----------------- ---------- ----------- hari 123 345 hari 11.12.2011
You can include the current value if you join more intimate in the select t_user.
Concerning
Marcus -
Exception while trying to get the selected value for the choice of SelectOne in ADF Mobile
I added the following code after arriving through this post https://forums.oracle.com/thread/2536419
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("facilitySelectItems");
Attribute String = (String) iterBind.getCurrentRow () .getAttribute (0);
But Jdeveloper complained class BindingContext wasn't available and I get the jar file adfm.jar has not been added to the project. I added it manually the path C:\JDeveloper11r24\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar. Once I've deployed code on an android emulator, I get the below error. Can someone please?
07-25 13:18:03.812: D/CordovaLog (869): [SEVERE - oracle.adfmf.framework - adf.mf.internal - logError] request: {classname: oracle.adfmf.framework.api.Model; method: evaluateMethodExpression; params: [0: #{pageFlowScope.IBCMSearchBean.getSearchParams}] [1:] [2: {}] [3:] ;} exception: {message: oracle/adf/model/binding/DCBindingContainer (unsupported major.minor version 50.0); the severity: ERROR; .Guy: oracle.adfmf.framework.exception.AdfException; .exception: true ;}}}
The version of the compiler maximum the JDev shows that 1.4. And I'm using version 11.1.2.4.0 for JDeveloper. The JDK version is 1.6.0_24.
Sorry I missed the question!
First of all, to get the value of selectedItem in selectOneChoice do not have another function in the domain controller. Here is an excellent article by Frank that explains this. Or you can use the below function to get the selected value immediately. Here the market is the value of selectOneChoice attribute. I wasn't aware of this method until you have read this article.
{} public void getAndSetMarketValue (market of the object)
ValueExpression ve = (ValueExpression) AdfmfJavaUtilities.getValueExpression ("#{bindings.marketSelectItems}", Object.class);
AmxAttributeBinding attrBinding = (AmxAttributeBinding) ve.getValue (AdfmfJavaUtilities.getAdfELContext ());
access the iterator that populates the list of values in
the selectManyChoice component
AmxIteratorBinding amxListIterator = attrBinding.getIteratorBinding ();
the AmxIteratorBinding is a wrapper for the BasicIterator
iterator which sets out the information we need
ListIterator BasicIterator = amxListIterator.getIterator ();
for each index value, query the name of the service (you can
access and attribute from the line) to display
SelectedValue = string
(String) listIterator.getAttributeValueAtIndex (((New Integer ((String) market))) .intValue (), "Value");
}
Second, you can use #{row} in commandLink's action since it is something that is evaluated when the user clicks on the link and we do not have access to #{line} after that the entire component is rendered. To remedy this give an action for the commandlink which is a function in the bean and the function of bean back to the action of the link selected.
ListOfReports.amx
.......
.......
LoginBean.java
......
public String returnClickValue() {}
Option of string = AdfmfJavaUtilities.evaluateELExpression("#{viewScope.selectedItem}").toString ();
return option;
}
......
-
Get the selected value of a select list item in a tabular presentation.
Hi, I have a tabular form and I'm trying to get the selected value of a select list item and store the selected value in a page element hidden elsewhere on the form of tables, so I can use this value.
I already have something similar to the input on the tabular presentation elements.
Get the initial values
var line = $x_UpTill (this.triggeringElement, 'TR');
numberOfItems var = $(' input [nom = "f12"]', ligne) [0];
numberOfItems = 123456.123
What I want to do is soemthing similar as above but capture the value of a select element in tabular form. I thought I could do something like:
Get the selected value
var line = $x_UpTill (this.triggeringElement, 'TR');
numberOfItems var = $('selected [name = "f08"] .val ()', line) [0];
But this method leaves the as undefined var numberOfItems.
Please help me to find a way to identify the item 'select' in the tabular form called "f08" and get this value.
I am a newbie to jQuery selectors etc...
Thank you.Strange that you do not get an error when you run your 2nd selector.
In any case for this kind of thing, see the HTML code of your tabular form and tell us what triggers, the element can be useful. Or better create an example at apex.oracle.com.
In any case, I see two errors:
(1) is there any html element "not selected" instead, the LOV in the APEX element has the select tag
(2) you can not write a. val() inside a selector that you must place it after your selection.So I'd like to rewrite your code to:
var line = $x_UpTill (this.triggeringElement, 'TR');
numberOfItems = $("select_[nom_="f08"]",_row).val () var [0];
Maybe you are looking for
-
I try to put my printer and CD and can't because of issued w/driver set / day, when I look for up/date and low load, it's what he tell me, runtime error program E:\setup.exe...this application has requested to complete tn unusual way... Please contac
-
I used Microsoft's security analysis and it showed 2 infections. The final report, said that Win Maximizer has been partially deleted. What is victory maximizer and how to remove the rest?
-
There is the home screen where I used to click on my username to connect to arrested Windows that appear. (I am the only user of the computer and never used a password.) But the computer just charge now completely on its own. Now all my files are in
-
A510 using Windows 8 driver problem
Greetings, I'm developing an application for Acer Iconia Tab A510 using Windows 8 as the development environment. To this end, I use the Android SDK for debug and deploy my application on your device via the USB cable. Until recently, I developed usi
-
Menu of Disabeling default Date field... urgent please help
I use a fild of date but I want to disable the menu item by default it adds when another dialogue with the date is launched and you can scroll amonghts the date. a copy of the Date field class "The field also adds a menu item to change its value. Whe