restrict the query\where in forms 6i
HelloIs it possible to restrict the users using Query\Where in forms 6i
Thanks in advance.
You can set FORMS60_RESTRICT_ENTER_QUERY in the registry to TRUE to achieve this goal.
Tags: Oracle Development
Similar Questions
-
Restrict the condition on the query data - help.
I want to restrict the query with the following condition data. I can't get the syntax right. Any help is appreciated
Select *...
Of...
where ps.name in ('black' or ('color' and not 'film') or ('film'))OAF - dev wrote:
I want to restrict the query with the following condition data. I can't get the syntax right. Any help is appreciatedSelect *...
Of...
where ps.name in ('black' or ('color' and not 'film') or ('film'))select * from ... where ps.name in ('black', 'color', 'film')
list of all the options that you want to match before 'film', to 'film' last.
Published by: user142857 on November 16, 2009 13:04
-
Run the query in accordance with condition
Oracle 10g version
Hi gurus
I have the following data
Examples of data
SELECT DeptNo FROM scott.emp
UNION ALL
SELECT EmpNo FROM scott.emp
;
Now what I want is I want to execute conditionally of those surveyed, something like below:
If list_item = 'I', then run below
SELECT DeptNo FROM scott.emp
otherwise run below
SELECT EmpNo FROM scott.emp
End if;
------
I want to keep the union all and run the query under the terms...
Set a long tank (max 4000)
L_WHERE_CLAUSE
Use it in your application as a substitution variable by prefixing with &
WHERE & L_WHERE_CLAUSE
Assign the value into a pl/sql block (trigger, formula column)
IF condition THEN
L_WHERE_CLAUSE: = '1 = 1';
ON THE OTHER
L_WHERE_CLAUSE: = '1 = 2';
END IF;
Now, among the options that have been suggested to you and the information you provided, I think the solution of Solomon should be easier. Just refer to the column list_item has a link within your query variable (assuming that this and the query where list_item belongs are related, for example, there is a join between them)
SELECT DeptNo FROM scott.emp, t
WHERE: list_item = 'l '.
UNION ALL
SELECT EmpNo FROM scott.emp, t
WHERE nvl(:list_item,'x')! = « l »
-
How to implement enter and execute the query in the ADF
I'm new to ADF and I'm trying to create a simple data entry in ADF 11 g based on a database table. I'm looking to implement the equivalent of the request function enter and execute the query in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help / tell me how this can be implemented.
Thank you
Srini.How to add a query Panel? Who has the most benefits that the use of Find.
More info on af:query
http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e12419/tagdoc/af_query.html
Arun-
-
Change the query to a display object
I have a view currently, object based on an entity. It is the default view object, which means that the query the view object is frank, he grabs all the attributes of the table. And there is no WHERE clause.
Actually, I only want to show a finite set of rows in my table. Whenever a record is modified/edited in this entity and committed, a new row in the database is created with the same information (I use CreateWithParams) with the exception of a few columns.
I actually didn't really update it on this table, just creating new lines. But to the user, I want it 'looks' like they change something in the table.
Example:
12, 11:32, Thompson, 60 (changes to the user this information in a table of the adf and a new line is created in the comic book)
12, 11:55, Thompson, 75
I have a timestamp field (see above) in the database that is used as part of my primary key, while I know that is later.
When executing the query of the VO, I want the user to only see as the last row of the db.
12, 11:55, Thompson, 75
Then...
I went to my VO, and I changed the query WHERE to add this:
where t1. TimeStamp = (Select MAX (t2. (TimeStamp) OF THE rcl.x t2 where t1.uid = t2.uid);
Now, this isn't a question of mysql/sql. There is actually a better query I was running, but the editor of the VO does not allow me to change the query itself...
When I save the new WHERE to my VO, rerun my page, I get the expected result (showing me only the latest recordings).
However, when I try and do a sort on the table in which are displayed my data, I get now ORDER BY errors.
I don't want my VO SQL read-only basis. I want to be able to update my table, so I have my VO running out of the entity.
Why don't the VO allows me to change the query itself? (As do a subquery instead of having my where clause to do the job)
Why are sorted by errors are thrown when I sort on my adf table after changing the where clause in my opinion?
I hope I was not too complicated in explanation of my problem...
Thanks in advance,
JoelHello
You can switch the VO query editor based on an EO to expert mode. This allows you to change the entire query. Unless you change the use of the attribute, the update through this VO work. Open the VO query and choose the Expert mode option of the query to see what I mean
Frank
-
How can I restrict a query to the right results where a value occurs more than once.
I am trying to identify the data where a foreign key id appears several times for a report. Usually, there is one line in the table, but sometimes there are several lines. I want only the line returned multiple results. No matter where clause I think is illegal.
Here's what I want:
Select exempt_cert_id, count of tb_exempt_cert_zones (exempt_cert_id)
where count (exempt_cert_id) > 1
Exempt_cert_id group
Try having count (*) > 1
- -
- -
HTH - Mark D Powell.
-
OS: Linux
DB: 11.2.0.3
ERP: 11g
Hello
I would like to create a new responsibility custom, whose responsibility it is to have access to the customer form Standard (ARXCUDCI.fmb), but I have a restriction in the form of customer research, it is that, whenever the user of responsibility search by customer number, customer name, name of the party or what ever search field, I would limit to restrict further search criteria where SALES_CHANNEL_TYPE = "RTL" is allowed to fill customer records , there are customer records are not allowed to get.
This column SALES_CHANNEL_TYPE originate from the HZ_CUST_ACCOUNTS table.
I tried customizing the form already, but the customer search form has too many fields for the user to search for, so customization form will put all over the places in the form. That's why I saw others recommended to "" Custom DLLs"... I know for my scenario, how to go on the DLL to the client? or any other more effective solution?
Grateful if someone can share your experience related to material above.
Kind regards
Lygine
Hi Lygine,
The customization I sent works this way:
-Any field where you want to insert the query.
-If a record is found, when the form opens and the cursor for typing the name of the customer, the personalization field search the contents of the field sales channel.
-If the content of this field is different from the string "RTL", the Customers form (ARXCUDCI) form is disabled.
Regardless of the field you fill in to make the request, is a record is found, the customer name field is the first hits of the cursor when the form is opened.
Octavio
-
Result of the query based on the form of the parameter
Good morning people. I really couldn't come up with a smart enough subject line, but I'll try and make up the body.
I currently have a report that accepts parameters on the parameter form. They are extra employees and Number of Copies. The employee ID is stored in the Employee table, but the number of copies is not.
The output of the report shows all the different addresses and phone numbers, the employee a. lets say, Employee ID 0001 has two addresses - home and office. In the report of my request, he'll give me two records in the repeating group. However, I have another parameter and the ID of the employee who is the number of Copies. In this case, if the number of Copies to be printed is 1, so it isn't a problem. However, if the Number of Copies is entered by the user is 4, I think in this case 4 x 2 = 8 pages of report output (4 with the address of the House) and 4 with the address of the office.
I know there is a way to do this using a temporary table in AfterPForm and then using the results of the query by joining my request to the temporary table, but I was really hoping to avoid this situation if it can be treated through the query.
Main request:
Any help is appreciated. Thank you!SELECT e.emp_no, e.saln||e.first_name||' '||e.last_name emp_name, a.street, a.city||' '||a.province||' '||a.postal_code city, '('||a.tel_area||') '||a.tel_number telephone FROM employee e, emp_address a WHERE e.emp_no = a.emp_no AND e.emp_no = :P_EMP_NO;
Hello
Since you started a new thread in the forum SQL and PL/SQL {message identifier: = 10470358}, please mark this thread as "Answered" right away.
-
by comparing the form variable to the result of the query
Hello
I'm trying to compare a form variable to what is in the database. Two transmitted variables - "form.employid" and "form.class". If the person chooses the wrong class or made a typo, then I get an error message. It sounds pretty simple, but I just don't get it. I want to compare "form.class" with COURSE_TTTLE in the database. If the "form.class" that the user selects does not match any COURSE_TITLE s in the database then I want to raise an error and told recheck. Here is my code
< IsDefined ("form.employid") cfif >
< cfquery name = "all" datasource = "hr1" >
Select EMPLID, COURSE_START_DT, COURSE_END_DT, SESSION_NBR, COURSE_TITLE
Of PS_TRAINING
WHERE EMPLID ='#FORM. EMPLOYID #'
< / cfquery >
< / CFIF >
It works well on it, but it's the cfif with that I have a problem. Here's the problem code:
cfoutput query = "all" >
<! - if the employee id and the title of the course are not in the same record, then run a mistake - >
< cfif TRIM ("form.class") eq ' #COURSE_TITLE # ' >
We do not show you as having enrolled in the course. Please check your employee ID and reselect a course.
< cfabort showerror = "No class" >
< cfelse >
#EMPLID # #COURSE_TITLE
< / cfif >
< / cfoutput >
I thought about it - you must use compare (form.class, #COURSE_TITLE #)
Then use cfswitch to compare and send the appropriate response. Here is the solution:
This is the default case
#expression #. -
Result of the query restriction based on the length of the field
Hello
I want to restrict the output of the query according to the length of a field (in fact, the length of the contents of a field).
Ex: only those records where the length of the data in a field is more than 20 characters.
Is it possible, can you give some advice on this subject...
Thank youHello
Example:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0 Connected as hr SQL> select to_date('16/8/2009 11:21:46','DD/MM/YYYY HH24:MI:SS') from dual; TO_DATE('16/8/200911:21:46','D ------------------------------ 16/08/2009 11:21:46 SQL> select first_name from employees where length(first_name) > 20; FIRST_NAME -------------------- SQL> select first_name from employees where length(first_name) > 10; FIRST_NAME -------------------- Christopher Jose Manuel SQL>
Kind regards
-
Assume that he has already extracted data and running (say join or sort) now and the node crashed, it will restart the query or out of there where he was
As Hemant says, it "will resume' If your system is properly configured, but the way he is to restart the application, but not to send to the client data he already saw - so if you have a query that takes 5 minutes to send all the data and the instance crashes with 10 lines to go to the falied on request will take something like the same 5 minutes to get to the point where it can return the 10 rows. (If in doubt, test).
Concerning
Jonathan Lewis
-
Where the query behind the report?
For the Analyses of BI, it has nqquery.log to see the actual query that is sent to the DB, with parameter values. Where can I see the query when I run a report BIPublisher?
What a pity that OBIEE save queries BEEP. Try to understand the query by looking at the data BEEP model is awful when someone else has built and it is complex. I found some workaround solutions:
-When you query the Oracle DB, look at V$ SQL from Oracle to see the complete sql query that was executed.
-When you query a MS Sql DB, run the activity monitor in Sql Server Management Studio (I have not yet tried).
-
NVL selection list does not not on the place where clause in query
Ok. APEX 4.2...
Im having problems with my selection lists and NULL values... I see that it has come time and time again...
I have a tabular presentation, with a query based on a selection list. The selection list has the ability to '- Show All -'... The value of the selection list is a number, and the display is words... (for reference the LOV query is: select status, batch from pmt_stat_lookup by 1)
Initially I had problems with null and invalid numbers like ' display Null = 'Yes' and the problem of null % ', so have used the code in this blog to remove the NULL values... Display Null = & amp; #34; Yes & amp; #34; and the problem of null % | Inside Oracle APEX by Patrick Wolf
Then in the application of my report, I have a where clause clause that checks the value of the selection list... WHERE batch = nvl(:P11_STATUS_SELECT,STATUS_ID)
everything works almost fine, and I can choose a status, or I choose - see the All-, but the query will not include the lines where the State is null.
(I also see that maybe I should be, use the case statement instead of the NVL on where clause, but not sure of the syntax. In addition, NVL was used somewhat in the different reports in the application...)
For reference, the code of the old blog that I as a process page is:
BEGIN
FOR rItem IN
(SELECT NOM_ELEMENT
OF APEX_APPLICATION_PAGE_ITEMS
WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)
AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)
AND LOV_DISPLAY_NULL = 'Yes'
AND LOV_DEFINITION IS NOT NULL
-change here
AND LOV_NULL_VALUE = '% null | '%'
)
LOOP
IF V (rItem.ITEM_NAME) = "% null | '%'
THEN
Apex_Util.set_session_state (rItem.ITEM_NAME, NULL);
END IF;
END LOOP;
END;
Thank you very much
Richard
Richard,
Perhaps this example can help you solve your problem.
https://Apex.Oracle.com/pls/Apex/f?p=63838:2
Jeff
-
I have a form that contains about 20 reliable section and I would like to restrict the ability to change 5 of them. Is there a way to do this?
Hi stephena29537178,
You can make changes in the properties of the PDF forms-field, see this KB doc. helps Acrobat | Forms (keyword: PDF form field properties).
Kind regards
Nicos -
Select the query with the level line list where the clause
Hi all
I am creating a tabular presentation based on a SQL query that has a list of selection based on a query with a where clause clause that refers to a column in the original SQL query.
The situation is, I have a table that stores the client_id, source_id, and build_id, lets call it client_source. I have a second table, build_source, containing source_id and build_id, one to many relations between the two (1 source_id could have build_id 1-7).
Using a tabular presentation, I want to select the correspondent build_id to use in client_source, but the selection list should contain only the build_id for this particular source_id of lines.
Here is an example of the SQL source of tabular presentation;
Select
s.ROWID,
s.CLIENT_ID,
s.SOURCE_ID,
APEX_ITEM. SELECT_LIST_FROM_QUERY (1, s.BUILD_ID,)
"Select display b.build_id, b.build_id return.
b build_source where b.source_id = s.SOURCE_ID ') lst
of s client_source
what I want to achieve, it's as source_id "BOLD" match fields. When the query is built this way, I get an error of "invalid identifier" Oracle on s.SOURCE_ID during execution.
Is there some special tags to be used to refer to the external column? I must be missing something because this looks like a pretty mundane problem.
I am running on 4.1.0.00.32, on an Oracle 10 g release 10.2.0.4.0 Server Express request.
I look forward to useful responses!
See you soon,.
Jason
Published by: 1005131 on May 9, 2013 19:02Your selection by query list receives a static SQL. That SQL can't "see" the value of your s.source_id.
But it would work like this:
where b.source_id = ' | s.SOURCE_ID)You would be the value for the SQL concatenation. It is not ideal, but it will work.
Jorge
Maybe you are looking for
-
Delete a photo library, now can bring into the iPhoto library
I have Photos of El Capitan put in place to manage multiple libraries on the same MacBook Pro internal hard drive. I was trying to create a new additional library, but seem to have screwed things up. I created the new photo library, called "BB_Photo
-
Automatic installation of GTA 4 on windows 7, my mistake is 'incompatible system '.
GTA 4 car is supposed to be compatible with Windows 7. I get the error "your system is not compatible. My system: Windows 7 Home premium, model # HPE - 150ff, Intel (r) Core i7 CPU 860 to 2.80 GHz 2.80 GHz (RAM) 8.00 GB, NVIDIA GeForce GT 230, 64-bi
-
where can I find my microsoft product key number
I'll have to enter a product key number every time I try to use microsoft. Where can I find the product key?
-
I downloaded the version independent and tried at least 10 times, disabled all antivirus type programs, tried the scan tool, you name it. Service pack downloads and installs but then when he runs out to complete the installation through a restart, h
-
Since November last Adobe Creative Cloud has released updates for several applications. Unfortunately, Photoshop continues to not be updated. I've searched the forums and the only suggestion was to uninstall Photoshop, and then reinstall it. I tried