limit the view criteria values prompt values based on others...
Hi all
I want to use a component of af: query a selection of custom view. It is possible to restrict the values of a a command prompt with the values of other selected guests... (for example when the user choice department_location, only the departments at this location appears in the guest/combo ministries..)
Thank you...
Yes, this should be possible. Discover vidoe Shay https://blogs.oracle.com/shay/entry/dependent_lovs_in_an_afquery_c
Timo
Tags: Java
Similar Questions
-
The VIEW ONLY value based on privileges
Hello. I use Apex 4.0. I'm trying to activate read-only based on a privilege assigned to a user. For example, I have several users where their privilege is set to 'View' in the access control list. How I have the code for this. The ' read only status of type "I chose"Request = Expression 1 ". I tried several phrases like: role = "View".
Thanks for your help.Hi Jari,
Thanks for the reply. Got me in the right direction. Because I created the access control based on the model of the APEX, domain names were a little different. Here's what worked for me:Select 1
Of APEX_ACCESS_CONTROL
Where upper (ADMIN_USERNAME) =: APP_USER
and ADMIN_PRIVILEGES = 'VIEW.Thanks again for your help.
Published by: PhilMan2 on 17 October 2010 16:11
-
change the settings of the view variable value
Hello
I want to know if it is possible to change the settings for the debugger, including the display of the "view variable values" settings in labwindows cvi 9.0.
My problem is that in my project, it is essential to be able to debug and I came across some difficulities with the array of structs containing pointers to structures. So, I did a demonstration to show project:
typedef struct {}
short sVar1;
short sVar2;
char cVar1 [512];
} MyStruct2;typedef struct {}
MyStruct2 ReadMyS2;
MyStruct2 WriteMyS2;
MyStruct2 * pReadMyS2;
MyStruct2 * pWriteMyS2;
} MyStruct1;int main()
{
MyStruct1 MyS1_Phis [3] = {0};
int i = 0;init
for (i = 0; i<>
{MyS1_Phis [i] .pReadMyS2 = & MyS1_Phis [i]. ReadMyS2;
MyS1_Phis [i] .pWriteMyS2 = & MyS1_Phis [i]. WriteMyS2;
}}
Unfortunately, the debugger handles .pReadMyS2 pointer [0] MyS1_Phis as if that it points to an array of 10 elements of type MyStruct2.
Anyone know the reason for this?
Thanks in advance,
Laszlo Nagy
Hi Laszlo,
Yes, it is a known problem in CVI. This can happen because of the way the CVI user protection is implemented. It is certainly not desirable, but we probably won't be able to change it at least still a year or two.
A solution you have is to disable the protection of the user and then rebuild your program (Options > Compiler Options > level debugging: no execution check)
Luis
-
limit the number of values, you can choose in the filter
Hi all
Is there a way to limit the number of values, we can check in the filter response obiee? for instance in the status column, can we put the limit that only 5 States can be selected in the response of obiee.
Appreciate your suggestions.
Thank you
Sushil
Not sure it works but around something like;
Give a note about only 5 values considered in the report;
in the report use this column, filter on rcompte rcompte<>
-
outer join in the view criteria
Hello world
I use jdeveloper 11.1.1.6.0
I want to create outer join in the view criteria, so I had to substitute getCriteriaItemClause ViewObjImpl.java method
my query is like this:
SELECT t1. row_no, t2.type FROM table_1 t1, t2 from table_2
WHERE t1. row_no (+) = t2. row_no
and t1.user_Id (+) =: bindVar
table_1 (row_no, user_Id)
table_2 (row_no, type)
the part " t1.user_Id (+) =: bindVar " should be put in the display criteria
the method:
@Override
public String getCriteriaItemClause (ViewCriteriaItem viewCriteriaItem) {}
String newQeury = this.getEntityDef (0) .getAliasName () + "." + viewCriteriaItem.getColumnName () + "(+) =:bindVar .
Return newQeury;
}
but when I run the criteria see exception below raises:
oracle.jbo.expr.JISyntaxError: Houston-36000: an unexpected token expression is found.
When I remove the sign "(+)" of newQeury
String newQeury = this.getEntityDef (0) .getAliasName () + "." + viewCriteriaItem.getColumnName () + "=:bindVar . remove the sign "(+)" before =:bindVar
raises the exception below
Houston-29000: Unexpected exception caught: oracle.jbo.expr.JIEvalException, msg = Houston-25077: t1 name not found in the given object: ViewRow [[5-1-5] oracle.jbo.Key].
Habib
This is a duplicate of https://forums.oracle.com/thread/2577092
Please do not post your questions several times.
A possible solution posted to the original thread.
Timo
-
Problem with between operator in the view criteria
Hello
We have a requirement. In the view criteria, we have a Timestamp attribute. We use between operator , so we have two variable bind fromDate and up to date . The search works fine if I give to plu date fromDate but if the same date for the bind variable, it does not return all records in the table .
Any solution to overcome this peoblem?
KRKR,
So are the timestamps fromDate and up-to-date? Are they fair dates, then they will be interpreted as midnight as-des-than-present, and unless your timestamp is from midnight, it would not be between them more. You can also set - Djbo.debugoutput = console in the properties of your project to see the SQL query running in the log window.
John
-
Control null to a variable binding in the view criteria
Hi, greetings.
I use Jdeveloper 11.1.2.0.
I have a view object, LocationsView, for the locations of the database of the tenth Board.
I want to apply a condition, ((: bind_var is null) or (: bind_var is not null and location_id =: bind_var), in this LocationsView.)
In other words, I want to apply the condition only if the value of the bind variable is not null.
How can I build this condition using a declarative view criteria?
Any help and advice on this topic is greatly appreciated.
Kind regards
Guru KIt should work if you set the box on her "ignore Null values" when you set criteria.
Timo
-
Default value based on other areas
Hi all, the company I work for recently started using JDeveloper (specifically the 11.1.2.3.0 version) and we started the construction of a new application. One of the requirements for this application is that users should be able to register a new account, and we would like to their display names in the default application based on their first and last name. I have been looking for a way to make the default to fill on the model layer, but have had no luck. The display name is a required field and validation on the client side seems to prevent that code population of default on the server running applications. We distrust to expose unnecessary data on the client, that's why we avoided running a script on the layer from view for this purpose. Is there an effective way to do this, or do we need to become more comfortable with the view layer to manage these types of actions?
Thank you
AlexHello
The display name is a required field and validation on the client side seems to prevent that code population of default on the server running applications. We distrust to expose unnecessary data on the client
Just clear the EL on the "required" property to the name of the view field and no client validation will occur. Given that the full name is always given name + family name, you need to make persistent at all? In this case, I would define a transitional attribute that you set in first name last name
Frank
-
The floating field value based on the drop-down list selection (sex)
Hi, I have created a form that will have different fields, dropdowns etc where the answers will fill a range of fields floating in a letter. I would like to have a list drop-down for sex (m/f) and if selected, either fill in the letter as 'he' or 'she. ' Is this possible?
Hello
Here are some ways to do it in this sample https://sites.google.com/site/livecycledesignercookbooks/home/HeShe.pdf?attredirects=0&d=1
Unrolling of male/female can have a bound value from it, which means we can do refers to the value directly, without however going any calculation. Is there are a lot of places where it needs to be replaced, then you can simplify things by making reference to the field to form directly, although this requires to change the XML, but if you won't find yourself with a hidden for each instance field. Or you could edit the XML Source and change the reference for the same id of a floating field. There are examples of both in the sample linked above.
Concerning
Bruce
-
limit the number of values in the listagg function and create several games
Hi all
I have a requirement where I would like to group one of the fields in a field based on the number of records. Lets say if we have an employee with multiple CODEZONE. Please see the example below. I want concatenation of each 10 EMPNO records into one. If she has more than 10 records for a given EMPNO, it should show in the form of another record.
For example:
EMPNO CODEZONE
A111 AL
A111 AK
A111 AZ
A111 AR
A111 CA
A111 CO
A111 CT
TO A111
A111 DC
A111 FL
A111 GA
A111 HI
B222 AL
B222 AK
B222 AZ
B222 AI
B222 KS
B222 KY
THE B222
B222 ME
B222 MD
MY B222
B222 MI
B222 CA
B222 CO
B222 CT
B222 OF
Result set:
EMPNO CODEZONE
A111 AL | AK | AZ | AR | CA | CO | CT | OF | DC | FL
A111 GA | HI
B222 AL | AK | AZ | AI | KS | KY | THE | ME | MD | MY
B222 MI | CA | CO | CT | OF
The above example can have any number of area CODE for a given EMPNO, the end result should show only a maximum of 10 codes for an EMPNO in each record. If she has more than 10 CODEZONE, it should show as another record. Please provide me with a generic statement to solve this problem. I was not able to control by setting the limit on records for an EMPNO gave to the LISTAGG function. Any ideas are much appreciated.
Thank you1008754 wrote:
Hi allI have a requirement where I would like to group one of the fields in a field based on the number of records. Lets say if we have an employee with multiple CODEZONE. Please see the example below. I want concatenation of each 10 EMPNO records into one. If she has more than 10 records for a given EMPNO, it should show in the form of another record.
For example:
EMPNO CODEZONE
A111 AL
A111 AK
A111 AZ
A111 AR
A111 CA
A111 CO
A111 CT
TO A111
A111 DC
A111 FL
A111 GA
A111 HI
B222 AL
B222 AK
B222 AZ
B222 AI
B222 KS
B222 KY
THE B222
B222 ME
B222 MD
MY B222
B222 MI
B222 CA
B222 CO
B222 CT
B222 OFResult set:
EMPNO CODEZONE
A111 AL | AK | AZ | AR | CA | CO | CT | OF | DC | FL
A111 GA | HI
B222 AL | AK | AZ | AI | KS | KY | THE | ME | MD | MY
B222 MI | CA | CO | CT | OFThe above example can have any number of area CODE for a given EMPNO, the end result should show only a maximum of 10 codes for an EMPNO in each record. If she has more than 10 CODEZONE, it should show as another record. Please provide me with a generic statement to solve this problem. I was not able to control by setting the limit on records for an EMPNO gave to the LISTAGG function. Any ideas are much appreciated.
Thank you
ME_XE?with data (empno, areacode) as 2 ( 3 select 'A111', 'AL' from dual union all 4 select 'A111', 'AK' from dual union all 5 select 'A111', 'AZ' from dual union all 6 select 'A111', 'AR' from dual union all 7 select 'A111', 'CA' from dual union all 8 select 'A111', 'CO' from dual union all 9 select 'A111', 'CT' from dual union all 10 select 'A111', 'DE' from dual union all 11 select 'A111', 'DC' from dual union all 12 select 'A111', 'FL' from dual union all 13 select 'A111', 'GA' from dual union all 14 select 'A111', 'HI' from dual union all 15 select 'B222', 'AL' from dual union all 16 select 'B222', 'AK' from dual union all 17 select 'B222', 'AZ' from dual union all 18 select 'B222', 'IA' from dual union all 19 select 'B222', 'KS' from dual union all 20 select 'B222', 'KY' from dual union all 21 select 'B222', 'LA' from dual union all 22 select 'B222', 'ME' from dual union all 23 select 'B222', 'MD' from dual union all 24 select 'B222', 'MA' from dual union all 25 select 'B222', 'MI' from dual union all 26 select 'B222', 'CA' from dual union all 27 select 'B222', 'CO' from dual union all 28 select 'B222', 'CT' from dual union all 29 select 'B222', 'DE' from dual 30 ) 31 select 32 empno, listagg(areacode, ',') within group (order by emp_grp) as emp_list 33 from 34 ( 35 select 36 ceil(row_number() over (partition by empno order by areacode) / 10) as emp_grp, 37 empno, 38 areacode 39 from data 40 ) 41 group by empno, emp_grp; EMPNO EMP_LIST ------------------------------ ------------------------------ A111 AK,AL,AR,AZ,CA,CO,CT,DC,DE,FL A111 GA,HI B222 AK,AL,AZ,CA,CO,CT,DE,IA,KS,KY B222 LA,MA,MD,ME,MI 4 rows selected. Elapsed: 00:00:00.05 ME_XE?
In the future, it would be nice if you could provide baseline data.
See you soon,.
-
The view of value in the drop-down
Greetings,
I have a dropdown menu with value: text as follows:
01:daylight
02:dusk
03:Dawn
04:night
I would like to present to the user who clicks on the drop-down menu with options of literal text (light of day, night, etc.), but once selected, the object fill and print only the value (01, 02, etc.).
I thought to resize the object when the user clicks top resize and then backward once selected, but this seems rather bulky. There is very limited space on the printed form, this is why value codes are used to represent the actual literal options.
Methods or ideas would be greatly welcomed
Thank you!
Brad
Hello
You could just go with ToolTips in the Accessibility tab. Resizing is quite simple (see mouseEnter and mouseExit events). You could also have the literal as part of the text, for example "02: dark", so that the user sees the complete element, but once printed all that you see is ' 02:
You could also have a legend that appears on mouseEnter.
Good luck
Niall
-
find the most recent value based on the defined date
Hi all
In my example below, I want to find the last symptom and the name that was added after 24-mar-2012 (not before that). Not getting not good performance
with xx as
(select 101 as the ID, "A01" as name, 24 March 2012 ' than double create_date)
Union of all the
Select 101, "A01", March 24, 2012 "of the double
Union of all the
Select 102, "A02", March 24, 2012 "of the double
Union of all the
Select 101, "A01", March 30, 2012 "of the double
Union of all the
Select 102, "A02", March 30, 2012 "of the double
Union of all the
Select 102, "A01", April 21, 2012 "of the double
Union of all the
Select 101, "A01", April 22, 2012 "of the double
),
XY as
(select 101 as the ID, "Asthma" as a symptom of double
Union of all the
Select 101, 'cancer' of the double
Union of all the
Select 101, 'bpressure' from dual
Union of all the
Select 102, 'sbp' of the double
Union of all the
Select 101, 'BPD' of the double
Union of all the
Select 102, 'allergy' of the double
Union of all the
Select 103, "heart failure" of the double
Union of all the
Select 102, 'sneezing' from dual
)
Select xx, xy, xx.name, xy.symptom, xx.create_date
where xx.id = xy.id
Group of xx.name, xy.symptom, xx.create_date
"After having xx.create_date > 24 March 2012"with xx as (select 101 as ID, 'A01' as name, '03/24/2012' as create_date from dual union all select 101, 'A01', '03/24/2012' from dual union all select 102 , 'A02', '03/24/2012' from dual union all select 101 , 'A01', '03/30/2012' from dual union all select 102 , 'A02', '03/30/2012' from dual union all select 102 , 'A01', '04/21/2012' from dual union all select 101 , 'A01','04/22/2012' from dual ), xy as (select 101 as ID, 'asthma' as symptom from dual union all select 101 , 'cancer' from dual union all select 101 , 'bpressure' from dual union all select 102, 'sbp' from dual union all select 101 , 'dbp' from dual union all select 102, 'allergy' from dual union all select 103 , 'cardiac failure' from dual union all select 102 , 'sneezing' from dual ) select xx.name, xy.symptom, xx.create_date from xx, xy where xx.id=xy.id and substr(xx.create_date,4,2)>24 group by xx.name, xy.symptom,xx.create_date;
-
The editable DataGridColumn value based on the data in row
I searched this but can't find a straight answer. People wanted something similar but not exactly the same.
I have several columns in a standard datagrid I would firstly be changed if data.company_id > 0. Is this possible? Here's my MXML code:
< mx:DataGridColumn headerText = "part number".
dataField = "part_number".
Editable = "false".
itemRenderer = "controls.setTextColor" / >I tried:
< mx:DataGridColumn headerText = "part number".
dataField = "part_number".
Editable = "{Data.company_id > 0? true: false ;}}" »
itemRenderer = "controls.setTextColor" / >But of course, it would be too easy, right?
Help greatly appreciated...
Rick
The editable property is not monitored for changes. Use rather ITEM_EDIT_BEGINNING event.
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
The View of line object count goes to zero after removing the view criteria.
Hello
I use JDeveloper 11.1.1.4.
I applied viewCriteria to a viewObject. Its working fine.
But after that when I remove this ViewCriteria using removeApplyViewCriteriaName () /removeViewCriteria (), the number of lines of this same viewObject is 'null '.
Kind regards
Alok
Rather than use getRowCount(), which is not good if you get several rows in the back, use getEstimatedRowCount(), which requires the DB how many rows are returned.
Then, you can start your apuplication with - Djbo.debugoutput = console so that you see what request is sent to the db. Or you use this class VO Dump request and it & #8217; s parameter with their values. JDev & amp; ADF Goodies to get only the query and parameters of the journal.
Timo
-
Problem 'On or before' operation in the view criteria
Hello
I have a query like the one below and I defined in a required display to display all the transfer_date "OnOrBefore" today's date but is to show data only before the current date not on the current date. Any reason why this is happening?
Thank youSELECT a.TRANSFER_ID , a.TRANSFER_DATE , a.ASSET_CATEGORY_ID , a.ASSET_ID , a.TRANSFER_FROM_ID , a.TRANSFER_TO_ID , a.STOCK_TAG FROM TRANSFER a INNER JOIN ( SELECT STOCK_TAG , MAX(TRANSFER_DATE) maxDATE FROM TRANSFER GROUP BY STOCK_TAG ) b ON a.STOCK_TAG = b.STOCK_TAG AND a.Transfer_Date =b.maxDATE
SamAnd what about time data (27-11-2012 ' 00:00:00.000')?
AP
Maybe you are looking for
-
Firefox incorrectly identifies .xlsx attachments as documents HTML Firefox
When I try to open attachments with .xlsx file extensions, Firefox identifies as a document HTML Firefox and the "open a file" window shows not Excel in option - when I try to go to Excel, the window only opens 'my programs' where I might be able to
-
Hello My Imac has been connected with a cable ethernet directly on the road, but today I can't use this connection because she says that the network cable is unplugged, witch is NOT. So now I can access via wifi. I tried to connect the network cable
-
Problem of charging on my Satellite P30
Hello Reload my P30 is possible only when 'bending' the power cable completely on the side near the entrance to my laptop power (for example, by placing a book under it as close as possible to the laptop). When turn on the power (Boot), he refuses to
-
I got a call from a man speaking Indian, two days in a row telling me that he needed me to go to my computer right now and give him my ID so that it can resolve the error messages that Microsoft had received when I used my computer. The first time th
-
Why my 3 BJewled will not play on my PC
How can I run my Bejeweled 3?