Change requisition lov query through controller extension
I'm new to OFA, if someone has worked with requisition controller extension, please kindly help me. We have an obligation to take the value of FDF and add to the query in the provider name/provider Site Lov to restrict the list. I am currently expanding the controller but impossible to get the handle to ReqSupplierVO define the where the clause. Here is the codepublic class xxNonCatalogRequestCO extends NonCatalogRequestCO
{
public xxNonCatalogRequestCO()
{
}
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
OAApplicationModule lovAM = (OAApplicationModule) am.findApplicationModule ("RequisitionLovAM");
OAViewObject vo = (OAViewObject) lovAM.findViewObject ("ReqSupplierVO");
ViewObjectImpl vo = (ViewObjectImpl) am.findViewObject ("ReqSupplierVO");
OAMessageLovInputBean mlib = (OAMessageLovInputBean) webBean.findIndexedChildRecursive ("XX_LL3");
String he's = (String) mlib.getValue (pageContext);
If (vo! = null)
{
vo.setWhereClause(//"Query"//);
}
}
}
Help, please!
Hello
To get the original Version, you must first get the right AM
Click on the comments on this page and find you have more than one AM,.
If so, you get the RootAM and then take the required AM and the discovery of the View object,
See the below allows to sample code, modify the code according to your AM, the names of VO.
Be wondered AM root
Get the VO of the AOS Thank you With respect,
public OAApplicationModule getRequestedAM (pageContext OAPageContext, String requestedAMName)
{
writeLog (pageContext, "required call me to check the AM" + requestedAMName);
String amName = "";
String objectivesAMName = requestedAMName; / / "ObjectivesAM";
String [] nestedAMArray = pageContext.getRootApplicationModule () .getApplicationModuleNames ();
pageContext.writeDiagnostics (this, "=> root AM" + pageContext.getRootApplicationModule () .getName () + "Child AMs =>" + nestedAMArray.length, 1);
OAApplicationModule currentAM = null;
currentAM = (OAApplicationModule) pageContext.getRootApplicationModule ();
for (int i = 0; i)< nestedamarray.length;="">
{
amName = nestedAMArray;
pageContext.writeDiagnostics (this, "Nested name AM =>" + amName + "and amName.indexOf (objectivesAMName)" + amName.indexOf (objectivesAMName), 1);
currentAM = (OAApplicationModule) pageContext.getRootApplicationModule () .findApplicationModule (amName);
Get the display names
String [] viewNames = currentAM.getViewObjectNames ();
for (int i = 0; i)
{
writeLog (pageContext, i + "value" + viewNames [i]);
}
If (!) (amName.indexOf (objectivesAMName)) ==-1))
{
pageContext.writeDiagnostics (this, "found handle for my Nested AM" + amName, 1);
break;
}
}
Return currentAM;
}
-----------------------
OAViewObject objAssessmentVO = (OAViewObject) yourAM.findViewObject ("yourVO");
Kali.
OSSi.
Tags: Oracle Applications
Similar Questions
-
How to dynamically change the generated query through the "query by example".
Hi all. I'm relatively new to the ADF, so I've been beating my head against a wall trying to figure out how to do this... Any help would be greatly appreciated!
What I try to do is to make a custom search (query) against a set of tables in the database. Normally, I would use just the ability to "filter" the af: table to do this (query by example). However, the query I need to run has three specific requirements:
1. I need to change the 'WHERE' clause differently according to the field in which the user enters criteria in. For example:
-If the user enters something in the field 'name' of filter, the default ADF BC will do is add '%' to the value entered, turning it into a query "begins by". I also want to prepend a '%' to the input value, (for example "doe %'), it becomes a query 'contains '. I don't want the user to see the '%', I put at the beginning of the field in the UI, however.
-If the user enters a value of 9 digits in the field 'SSN', do a query of "accurate". If they penetrate only 4 digits, do a query "ends by". (I could always just a query "ends by" - for example "% of values" - even if they have put in 9 digits, and that would work.) However, an exact match will run faster because of the index on the field, so I want to use that if we put 9-digit.)
2. I also need to change the SELECT part of the query based on which fields are used in the filter.
3. If the user enters the filter values in several fields, I need 'OR' them together. The default functionality, it's that they are 'linked' together.
Can someone point me in the right direction? My thought was somehow replace the manner in which the query is generated when the user presses ENTER to run the filter. But, I can't seem to understand where and how to connect it to this process to customize the SELECTION and WHERE the parts of the generated query. I'm sure that there is a way, and I hope more experienced ADF'ers can direct me to the solution.
Thank you!
Published by: 926392 on June 25, 2012 15:39
Published by: 926392 on June 25, 2012 15:40Check this post in the ADF Code corner for the necessary information:
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/30-table-filter-queries-169172.PDFThank you
Nini -
Page OFA standard validation controller Extension customization
In the project approver responsibility-> project management - > research project page after entering project, project number click on project page will open in the project page after click on the installation program is a STATE field and button change the privileges is here,
Requirement is if someone wants to change the status, then click on the change status button it will now display ex: (' there is no app-rovers for this project ") if there is no State of approver change button will not work it do not go to the next page, this approver validation comes from the feature based on the value it should display the message through the extension of controller We can achieve this requirement please help on code.
What is the projectId you used when you run from the backend?
Here, looks like the projectId is coming null.
EXCEPTION: [WGT. Oracle.apps.PA.Project.WebUI.XXEXProjectChangeStatusCO]: Project IDnull
You should check the standard gamepad to know how to get the projectId.
I hope this helps.
See you soon
AJ
-
BUG: APEX 4.1 Application Builder: LOV query Source
APEX 4.1.0.00.32 on apex.oracle.com
The following SQL code is rejected as a dynamic source query LOV in the LOV Wizard (page 4007) and shared components > list of values (page 4111):
withselect lov_value lov_label, lov_value from (select 'Mens' lov_value from dual union all select 'Womens' from dual union all select 'Accessories' from dual)
>
1 error has occurred
< li > LOV query is not valid, a display and a return value, column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.
>
Don't see how it violates the rules?
However, change in the body of a function that returns a SQL query and it is allowed on two pages:
And the SQL of origin is recognized as a local of LOV definition to edit the Page item (page 4311).return q'{ select lov_value lov_label, lov_value from (select 'Mens' lov_value from dual union all select 'Womens' from dual union all select 'Accessories' from dual)}'
Hello
I filed bug # 13520001 to change the checking logic of the wizard named LOV to use the same controls that we do on "Edit Item Page" (4311).
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to get query "LOV" i.e. requisition approval path, LOV name is 'APPROVAL_PATH '. How to get this LOV query?
Kind regardsHow to get query "LOV" i.e. requisition approval path, LOV name is 'APPROVAL_PATH '. How to get this LOV query?
You can get the query by referring to (how to determine table and the name of the column to a field in a form in 11i [259722.1 ID]).
Or, you could activate the trace and generate the TKPROF file and this will display the exact query used by the form - FAQ: Techniques of common tracing in the Oracle Applications 11i/R12 [296559.1 ID]
Or, open the form using the Forms Designer and get the code.
Thank you
Hussein -
Hello
I need to change the LOV stopped by the Department that's using is display first.
We have Production, quality, maintenance, contract etc..
If the Ministry of Production work their LOV details view the Production oriented Department details employ first then others used Department details.
Kind regards
Vincent C.Hi Vincent,.
If I follow this correctly you must order by the Department according to the active Ministry.
An example of the query used to record group to display only the active Ministry employees is
Select name, emp_no
WCP
where dept_no =: active_departmentSince you need view all employees sorted by employees of the active service, first use the following example of the record group with a UNION query:
SELECT name, emp_no, 1 order_column
WCP
where dept_no =: active_department
Union
SELECT name, emp_no, order_column 2
WCP
where dept_no! =: active_department
order_column orderHope this helps and I get Points.
Better compliance
Arif
-
How to disable the popup LOV (query based LOV) tabular
Hello
I need help. I need to make a line in a table form the read-only AND disable the Popup LOV (LOV based query). As you can see in the code below all rows with a value of "AUD" becomes read-only. Column 5 is a Popup LOV (query based LOV), and must have become read only AND disabled also. Currently, the code performs the lines = "AUD" read-only, but the user can still click on the Popup LOV this line and select a value from the list, then updates the row.
All solutions?
function makeRowReadOnly() {}
{$('select[name="f06"]').each (function ()}
var row_val = $(this) .val ();
ROW_ID var = $(this).attr('id').substr (4);
If (row_val is "AUD")
{
$("#f02_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f03_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f04_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f05_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f06_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f07_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
}
else {}
$("#f02_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f03_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f04_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f05_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f06_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f07_"+row_id) .attr ("readonly", false).removeClass('row_item_disabled');
}
});
}Hi dekoke_i,
I tried this on my local instance of APEX 4.2:
function makeRowReadOnly() { $('select[name="f06"]').each(function() { var row_val = $(this).val(); var row_id = $(this).attr('id').substr(4); if (row_val == 'AUD ') { $("#f02_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f03_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f04_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled'); //make the popup-lov button readonly $('#f05_' + row_id).closest('tr').find('td span.lov a').addClass('row_item_disabled').unbind('click'); $("#f06_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f07_" + row_id).attr("readonly", true).addClass('row_item_disabled'); } else { $("#f02_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f03_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f04_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f05_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); //enable the popup-lov button $("#f05_"+row_id).closest('tr').find('td span.lov a').removeClass('row_item_disabled').bind('click'); $("#f06_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f07_"+row_id).attr("readonly",false).removeClass('row_item_disabled'); } }
I hope this helps!
Kind regards
Kiran
-
Remove controller extension in the OPS r12
All, there are some controllers custom isupplier page and the user wants to disable/delete for now.
Can someone tell me how to disable/remove the controller extensions?
I know how to remove a VO scope, but I have no idea how to do to remove or disable extended CO.
Thank you.
Go to this page and see where is the extension of the controller. Discover this region and click Customize this region, then you will see for the controller class, the extension is given.
Click inherit from this region and apply.
-
When I send someone a document I changed if his crossing of the stuff or by adding arrows, when the customer print, it does not show my changes, I'm going through our prices so visitors cannot see and when the customer print them they can see prices?
You probably use drawing markup tools. There are options to print with or without annotations. You can not change this.
If you don't want them to see the prices, either remove the original document and recreate the pdf without them there or you can use the redaction tools in the full paid for version of Adobe Acrobat Pro.
-
Possible to change the variable cpQuizInfoPassFail through advanced actions?
Is it possible to change the variable cpQuizInfoPassFail through advanced actions? I do not see this or the other quizzing variable when I try to create an advanced action and change by entitlement or expression. Let me explain what I want to accomplish, I ask the wrong question. I have a training project, with that I need to include a post test. I don't really like the captivate quizzes. I want the post-test to play as a ride on jeopady where the user chooses issues category and gets points if the user answers correctly. For this I must ask questions on a game board and (from what I can fig) you cannot have multiple questions on the same page. I'm building the quiz with my own custom variables and coded so that the program jumps to a page of the certificate if the user gets more than 84 points. THA all works very well. But I have to be able to tell the database that the program will connect with the user has passed the quiz. I thought I could do this if I assign the value 1 to the variable cpQuizInfoPassFail. Is there a way to do this? Thanks in advance for any help,
Doug Jackson
Hi Doug,.
I don't see the version you are using. Each interactive object can be marked, has a report following properties in the control panel (if you use CP5 or CP5.5) or a tab in the Properties dialog box reports, if you use a different version. You must add a score (default value is normally 1 point) and make sure you add it to the total score.
If you want to make me a glance, post your file on acrobat.com (free, use your Adobe ID), share and publish. You will have a link that you can copy into a private message to me.
Lilybiri
-
LOV query is not valid, a display and a return value is necessary, column n
Hello
I AM FACING
with two table, I create lovLOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
the tables are
CREATE TABLE "CRM_SALES_DEPARTMENT" ( "DEPT_ID" NUMBER NOT NULL ENABLE, "CUSTOMER_ID" NUMBER NOT NULL ENABLE, "DEPT_CODE" VARCHAR2(50) NOT NULL ENABLE, CONSTRAINT "CRM_SALES_DEPARTMENT_PK" PRIMARY KEY ("DEPT_ID") ENABLE )
I USE QUARYCREATE TABLE "CRM_SALES_CUSTOMERS" ( "ID" NUMBER, "CUSTOMER_NAME" VARCHAR2(255), "CUSTOMER_ADDRESS1" VARCHAR2(255), PRIMARY KEY ("ID") ENABLE )
But who show me LOV query is not valid, a display and a return value is needed, the column names must beselect (SELECT CS.CUSTOMER_NAME FROM CRM_SALES_CUSTOMERS CS WHERE CS.ID=SD.CUSTOMER_ID) AD D, SD.CUSTOMER_ID R from CRM_SALES_DEPARTMENT SD where SD.DEPT_CODE=:P16_MARKET
different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.
How to solve this problem.
Thank you
Published by: 805629 on January 10, 2011 03:46
Published by: 805629 on January 10, 2011 03:58
Published by: 805629 on January 10, 2011 03:59¿AD?
Select (SELECTION of CS. CLIENT_NAME CS CRM_SALES_CUSTOMERS WHERE CS.ID = SD. CUSTOMER_ID) AD D, SD. CUSTOMER_ID R
CRM_SALES_DEPARTMENT SD where SD DEPT_CODE =: P16_MARKETBut the correct way is a join outher
select CS.CUSTOMER_NAME D, SD.CUSTOMER_ID R from CRM_SALES_CUSTOMERS CS, CRM_SALES_DEPARTMENT SD where SD.DEPT_CODE=:P16_MARKET And CS.ID(+)=SD.CUSTOMER_ID
-
Need help with Bind variable in AF LOV query
Hello
I have a problem with the binding variable, if I use bind variable in the VO LOV query then my result does not come, if he has do not bind variable it works fine and if I use the variable binding in the LOV search option then it works fine but if I hide the bind variable and set the value in the prepareSesstion AM method the LOV does not return any value. I try to return the values that also all values are also coming, but these values are not the attribute query AF setting.
Query is:
Select substr(d.description,0,40) description
cm_system_users has
b cm_user_responsibilities,
cm_responsibility_processes c,
cm_processes d
where a.nt_login =: B_NT_LOGIN
and a.user_id = b.user_id
and trunc (sysdate) between b.eff_date and nvl (b.exp_date, sysdate + 1)
and b.RESPONSIBILITY_ID = c.RESPONSIBILITY_ID
and c.process_type = d.process_type
and d.enabled_flag = 'Y' order of d.arguments_flag
FOLLOW the method:
CmProcessViewImpl vo = getCmProcessView();
String nt_login = getUserPrincipalName();
vo.setNamedWhereClauseParam ("B_NT_LOGIN", nt_login.toUpperCase ());
vo.executeQuery ();
Can someone help me with this. It is urgent for me.It's a bit underdescribed. IIUC, the purpose of the notice is used as a target for a correct view accessor? (Otherwise, you will have to be more explicit about what you mean by "LOV query".
If I'm right, there are two possibilities:
(1) you use an instance of VO in a module shared application instance. If so, make sure that your code is in the prepareSession() for the class of application that module if it is dependent on session (as seems to be below), you must make sure that the module of the application instance is shared in the session scope.
(2) you have based the view accessor directly on the definition of the VO. This creates an anonymous instance of VO; I don't think there is a way to use prepareSession() to set a variable of liaison on such a forum (which will not be created until the accessor is first used). Pourriez be able to shoot with to put a similar code in the view object create() method class, but I've not tested this.If your code is in your module class application primary (as opposed to the class for a shared of AOS instance), the problem here is that getCmProcessView() returns the instance of VO data module of this application instance design-time model, which is never used by accessors of the view.
Also, why do you need to do this in prepareSession() rather than at the level of the accessor to view? I believe you can get the user name (for the view accessor) with the groovy expression
viewObject.DBTransaction.session.userPrincipalName
or maybe just
DBTransaction.session.userPrincipalName
(despite this DBTransaction involving, it returns the username web app, not the DB user name).
It is a declarative 100% solution, if you don't count the Groovy expression as not declarative.
If you are afraid of a user who is running the LOV (somehow) before the value of the bind variable is preparing, just make sure that the binding variable is marked "required."
-
Can someone tell me what is the problem with this LOV query please?
This query works very well...
Select filter_name display_value, FILTER_ID return_value
from OTMGUI_FILTER where username = 'ADAM '.
But this one...
Select filter_name display_value, FILTER_ID return_value
from OTMGUI_FILTER where username = apex_application.g_user
Gives the following error.
1 error has occurred
* LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.
Thank you very much
-Adam vonNiedaAdam:
Define the LOV query as follows
declare l_val varchar2(100) := nvl(apex_application.g_user,'ADAM'); begin return 'select enAME display_value, empno return_value from emp where deptno = '''|| l_val || '''' end;
CITY
-
Change DHCP with control through web query
I'm writing an initializer DMP to get all of our DMP correctly through a program Windows forms. The DPM is 4400G using version 5.2.1.
I send you a number of orders, and they work with the exception to disable DHCP and set the IP address.
The commands I send are:
set_param? init. GWYN = 10.101.0.1 & init. DNS = 10.101.0.1 & init. IP = 10.101.0.87 & init. DHCP = OFF & MIB. Save = 1 & MNG. Reboot = 1
The gateway and DNS are defined, but the DHCP protocol is still there. I tried to disable DHCP through the web interface and it works. I sent then simply the new IP address, but nothing has changed.
I have reset to factory settings and restart it. I ran the unique controls with mib.save and pieces in different orders. Nothing changes.
As I can't find any documentation of the MIB of 5.2.1 I ask your help.
Bjoern,
You are absolutely right. The DHCP protocol cannot be disabled using the MIB. 5.2 code network configuration is stored using a config file in the DMP, rather than the MIB (as if it were in 5.1). It took me two hours to understand, but here's the solution:
Please use the hidden command: https://161.44.77.100:7777 / get_param? p = network. * to determine the configuration of the network
It's my configuration before (output comes from the net.conf file in the DMP): DHCP is activated and assigned IP address is 161.44.77.100
[eth0]
DHCP = 1
isUp = 1
Domain = Cisco.com
IP = 161.44.77.100
mask = 255.255.255.0
GWYN = 161.44.77.1
DNS = 161.44.124.122 64.102.6.247 171.68.226.120[eth0]
DHCP = 0
isUp = 1
Domain = test.me.com
IP = 161.44.77.101
mask = 255.255.255.0
GWYN = 161.44.77.1
DNS = 161.44.124.123For your particular case, the command should look like this:
set_param? Network.eth0.GWY =10.101.0.1 &= network.eth0.dns10.101.0.1 &network.eth0.ip= 10.101.0.87 &network.eth0.dhcp= 0& mng .command = network.saveConfiguration & .save mib = 1 & mng .reboot = 1
Let me know if you have any questions. I hope this helps. If your concern is addressed please mark this message as "answered".
Kind regards
Sagar Dhanrale
-
LOV query fails, but works in SQL commands
I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:
Impossible to analyze the query SQL LOV!
ORA-00942: table or view does not exist
Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?
The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.
SELECT PG.POST_CODE||' '||PT.NAAM FROM V_PRT_GEM_T PT INNER JOIN PRT_GEM PG ON PT.NR = PG.NR WHERE LAN_NR = 4
Julijan wrote:
I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:
Impossible to analyze the query SQL LOV!
ORA-00942: table or view does not exist
Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?
The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.
- SELECT
- PG. POST_CODE | » '|| PT. NAAM
- Of
- PT V_PRT_GEM_T
- JOIN IN-HOUSE
- PG PRT_GEM
- WE
- PT. NR = PG. NR
- WHERE
- LAN_NR = 4
It is likely that CERTAIN privileges on one or two tables/views used are granted for the scheme of the analysis of the application through a role, not directly to the schema. Role-based privileges will be observed in the workshop of SQL in the latest versions of database, but not for running applications. See (YABAOAE) yet another Blog about Oracle Application Express: Application Express and SQL Analysis for detailed information.
That's why you always have to give the full APEX and the database version numbers when you ask a question: implementations and features change over time. If we know exactly which versions are used so we can determine what behavior is expected, and what bugs exist or have been corrected...
Maybe you are looking for
-
I have a Apple Watch watch OS 2.2.2 (13V604) running and one 5 iPhone with iOS 9.3.5 (G 13, 36). Previously, I found that the watch would not send SMS free hands unless I turned on iMessage; These messages would simply disappear, but things seemed to
-
NVIDIA display error messege.
I have a lenovo Y570 with the intel hd 3000/geforce gt 555 m. I recently downloaded Call of Duty 4 and CoD World at War on steam as well as Nvidia 310.90. These pilots are unstable for 2 games, if I try to change resolution on multiplayer, the game c
-
Darkside HP: HP Darkside: 3F0 error message
Hi, HP Darkside suddenly off son himself last night and when we try to restart it shows the following error message: Not found boot device Please install an operating system on your hard drive Hard drive (3FO) Diagnostics of F2 I read a lot of posts
-
How can I find what my ' is the speed of internet access?
How can I find what my ' is the speed of internet access?
-
Error code 80072F8F. Won't let me install the updates and I can't get into hotmail or facebook applications.