How to build LOV based on colon deliminated values in table?
Hi All,
I have a CUSTOMERS table with a column TYPES. This column stores colon deliminated values coming from a standard shuttle element eg.:
CUSTOMER_NAME TYPES
Customer 1 1:2:3
Customer 2 2:3:4I need to build a query which will return me all types (as rows) based on a given customer, Eg. in the above example, for Customer 1 I should have something like:
CUSTOMER_NAME TYPE
Customer 1 1
Customer 1 2
Customer 1 3Any ideas?
I have a set of examples showing how to do that here:
http://apex.oracle.com/pls/otn/f?p=31517:84
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------
Similar Messages
-
I have to populate Description field by default in AGIS page (Advanced Global Intercompany System).
Field Description:
messageTextInput: Description
VO: FunTrxHeaderVO
VO Attribute: Description
VO is entity based.
Now if the field is null then I have to populate this value by some value from table for selected batch_id.
Example:
(SELECT DESCRIPTION FROM fun_trx_batches WHERE batch_id =
211061)
Also, this value is being populated in the Batch Information region in the same page. So the problem is also be treated as to copy a value from one messageStyledText to messageTextInput in a same page.
Can this be done through personalization, w/o coding?
Please suggest if you any idea how to resolve..
Regards,
PahariNot sure why it is not displying in the front page list??
I have to search it.
Admin team, please help.
Regards,
Pahari -
How to build URL-based Portal for iAS 902
Does V2 PDK support URL-based portlet? Can anyone provide a sample provider.xml?
Thanks,
-JinAftter subscription, I could view the doc for V2. I modified my provider.xml accordingly as follows:
<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
<?providerDefinition version="3.1"?>
<!DOCTYPE provider [
<!ENTITY virtualRoot "/jpdk/">
<!ENTITY physicalRoot "E:\9iAS\Apache\Apache\htdocs\jpdk\">
]>
<provider class="oracle.portal.provider.v2.http.URLProviderDefinition">
<providerInstanceClass>oracle.portal.provider.v2.http.URLProviderInstance</providerInstanceClass>
<session>true</session>
<useOldStyleHeaders>false</useOldStyleHeaders>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>7</id>
<name>jimmy2</name>
<title>jimmy2</title>
<descriptionKey>jimmy2</descriptionKey>
<timeout>1000</timeout>
<timeoutMessage>Timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<contentType>text/html</contentType>
<showPage class="oracle.portal.provider.v2.render.http.URLRenderer">
<pageUrl>http://www.google.com</pageUrl>
</showPage>
</renderer>
</portlet>
</provider>
I didn't get any error registering the provider and adding the portlet. But when portlet was rendered, I got error:
Error: The listener returned the following Message: 500 Internal Server Error
Any ideas?
Thanks,
-Jin -
Change LOV based on another field value
I have a need to change the LOV of a page item's select list based on the selection in another page item's select list. So in other words, for a page item that is a select list, I need to use one LOV normally, and a different LOV if the value of a different page item is set to X.
A dynamic action would be useful here (on change where Select List 1 = x), but I don't know how to take the action of changing LOVsfor Select List 2 based on that action.
Thanks in advance!
JohnGood question. Here is more detail. 2 page items are involved here - P23_GEAR and P23_GEAR_TYPE. Normally, my SELECT for my LOV for the page item P23_GEAR is:
select distinct gear_code d, gear_code r
from gear_lk
order by 2
IF Page Item P23_GEAR_TYPE = 'S' (selected from a select list) THEN I need to use THIS SQL query for the LOV for P23_GEAR:
select distinct gear_code d, gear_code r
from season_gear_office_lk
where season_code = :P23_SEASON
and field_office_code = :P23_FIELDOFFICE
order by 2
So if Page Item P23_GEAR_TYPE = 3, then I have to use a different query for the P23_GEAR page item. And this one is dependent on 2 other page items.
Where do customers come up with these things?!!!
Thanks,
John -
Help need on how to load lov accoding to the locale value select
Hi,
My scenario is , i'm having two button. One button for English locale(En) and another button for Dutch locale(Nl).
I'm having a database table which hold 2 columns, which are En and Nl.
I'm loading this columns value using an Lov
when i click the En button, Lov sholud load according to valus in En database column, and like that when i click Nl button it sholud load Lov according to values in Nl column.
I'm using a Session managed bean which used to set the locale.
i have implemented this scenario, but i got few bad problems.
1) my implemented method is not recommended as best practice
2) lov dosesn't change until i click a value on it.
In lov select query i used bind variable and put it value as adf.context.expressionEvaluator.evaluate('#{UserPreferences.language}')
this is not a best practice, so please help me to do this with in best practice.
Thanks.Dear akash,
my scenario excatly same as this.
[http://biemond.blogspot.com/2009/02/change-language-locale-in-adf.html]
when user select dutch language i want to load the lov with dutch langage.
in this example lov values are hardcoded in the program, it didn't use any database columns.
in my scenario my lov is based on database table. that table contain two columns.
English | Dutch
One | een
Two | twee
Three | drie
in my view object i use a query like below.
Select English Mul
From User_Loacle
Where :plocale='en'
union all
Select Dutch Mul
From User_Loacle
Where :plocale='nl'
i assign a bind variable plocale.
i want to pass the above selected locale to this bind variable. -
How can a LOV returns more than one value in ADF query?
Hi,
I'm using JDev 11g .I'm using a LOV attribute and I have declared a transient attribute to return the meaningful value of the LOV on it. Now it works fine in form , but I want to make it work on the view criteria(<af:query>). It does not return the transient content, and returns empty value.
Thanks
Edited by: farzaneh on Nov 13, 2009 10:56 AMIt seems like Shay Schmeltzer just put out something on his blog on this very issue. You might go have a look to see if you get inspired, since you have given us very little information by which to help you otherwise.
-
How to group rows based on a formula value
Hi experts,
I have a query that returns a a char row (country) and a couple of columns, "Duration of Process in days" and "Counter of nº process done", each a calculated formula KF .
What I would like is to group the results based on formula KF1 results ""Duration of Process in days".
For example: from this query result
Country - Duration of Process in Days - Counter of nº process done
ES 1 3
PT 3 2
UK 4 3
IT 1 5
US 6 2
FR 1 3
DE 4 5
get the following: aggregated by all possible formula values "Duration of Process in Days"
Duration of Process in Days - Counter of nª process
1 11 (353)
3 2
4 8 (3+5)
6 2
Is this possible??
Thanks in advance for your help,
Best regards,
EnricHi Vikram,
my problem is that the "Duration in days" cannot be a characteristic derived in the loading process, as its value depends (is calculated) based on several user's selections done in the variable pop-up screen when executing the report.
Thanks again for your reply.
Enric -
How to build "Greater/less or Equal" relationships between two tables?
Hi,
Is there any straightforward approachs to realize the following kind of relationships between two tables?
Table1.process_end_date >= Table2.work_start_date and
Table1.process_end_date <= Table2.work_end_date
BTW, there's no common columns for these two tables to do simple joins (inner, outter...).
Thanks.
Regards,
QilongSure.
Table.SelectRows filters a given table (in this case Table2) based on a function provided as the second argument.
(table2Row) => is the start of our filter function. It defines a function that takes one argument, called table2Row. Each row of Table2 will be passed to this function. If the function returns true, the row will be kept. If the function returns false,
the row will be filtered out.
The right hand side of the => is the filter expression. Because we're adding the custom column to Table1, we can reference a field in the current row of Table1 using square brackets (e.g. [process_end_date]). To reference the fields in the current row
of Table2, we have to index into the table2Row variable passed to our function (e.g. table2Row[work_start_date]).
Hope that helps.
Ehren -
I am looking for a way to essentially import a select group of values from one table into another. If, for instance, I have a list of names in Column A and a list of colors in Column B, I would like to be able to compile a list of the names which coincide with each distinct color, and do so in a new table specific to that color. Probably an obvious solution, but I'm a relative newbie with Numbers and my spreadsheet experience is fairly limited so I apologize if this is embarrassingly rudimentary. Thanks in advance for any help you can give.
You can extract a subset in a separate table by adding a helper index column to your table with the original data and using a formula in the separate table.
But first, have you tried just using a filter on the table to view a subset of the data? You would simply filter on a color in your Column B and would immediately see the names specific to that color in Column A. And you could copy-paste those names elsewhere as needed. No extra columns. No formulas. No fuss.
SG -
How to disable field based on the selected value
Hi everyone,
I have "employee" table,
it contains the following field,
emp_name
emp_designation
Category
YearsHere the "category" is the select list value which has the following values in select list,
Fresher
Experienced,
when the value :Fresher" is selected for "category" then the "Years" field should be disabled.
I tried the following dynamic action ,
Name:Disable_year
sequence:20
Event:Change
Selection Type:Item
Item(s):Category
Condition:equal to
value:Fresher
Fire When Event Result Is:TRUE
selection type:P1_YEARBut it doesnt work.
can anyone give alternate solution?
Thank you.
Regards,
gurujothiName:Disable_year
sequence:20
Event:Change
Selection Type:Item
Item(s):Category
Condition:equal to
value:FresherTry return value instead of this display value(Fresher) of select list
Fire When Event Result Is:TRUE
selection type:P1_YEARIn your above dynamic action, where is the disable action? -
How to create a PDF with substituted key-value and table-values using a template language
I have about 50 key-values and 10 table-values that I want to substitute into a formatted report template (language can be anything standard, would create a small number of these templates) and then use an Adobe tool to substitute the values into the template and produce a PDF. Preferably the template language would permit some basic conditional logic (if <key #> has value <value> then <show key label here> and <key value here> in close spatial proximity on the form) and permit embedding of a static graphic logo, text with fonts/styles, etc. to produce a polished report but also handle pagination (e.g. enable page breaks or numbering) to be handled automatically.
What is a recommended template language and product to accomplish this?Are you thinking of something like a blank form that you can enter information into, save, and send to another user? If so, what you want is possible. If you want more information, post again and include more details about how you want to use it and how the recipient will use it.
-
How to load a file using unique code values to table
Hi Experts,
I am loading the data from file to Table.
In the file I am having the values like as follows
ABC=1234;XYZ=5627;NAME=chandu
ABC=1254;XYZ=5684;NAME=Raju
ABC=1235;XYZ=5524;NAME=Nani
How to approach these kind of requirements in ODI.
Thx,
Sahadeva.Hi thanks, but this is not what I am expecting.
In the link you have provided me there the values are as like follows in the file.
EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO
7876,ADAMS,CLERK,7788,23-05-87,1100,,20
7900,JAMES,CLERK,7698,03-12-81,950,,30
But in my original file I have the values like
EMPNO=7867;Ename=ADAMS;JOB=CLERK
EMPNO=7846;Ename=JAMES;JOB=CLERK
EMPNO=7900;Ename=SCOTT;JOB=MANAGER etc..
So tell me please how to come across this requirement.
Thx,
Sahadeva. -
How to create a LOV based on a stored procedure returning a cursor
Hello,
I've tried to search the forum, but did not find much. We are facing a problem of large LOVs and creating large TMP files on the app server. Our whole application is drived by store procedures. LOVs are built manually by fetching data from cursors returned from stored procedures. That creates the issue when whole LOV needs to be stored in the memory and thus the TMP files.
Is there anyway how to create LOV based on a procedure returning cursor ?
Thank you,
RadovanHello,
As of now we populate the record group by looping through the ref cursor and adding rows into it. Is there a better way? That forces the whole record group to be stored in a memory on the app server.
Thank you,
Radovan -
Commit not allowed in Trigger then how to store the values in table
Hi,
Database trigger not allowed to COMMIT in it (directly) or in procedure which is calling from the Trigger. it gives error.
so my question is:-
1)How Database internally store the INSERT AND UPDATE value in table which is written in procedure without COMMIT?
2) Is it necessary to write COMMIT in procedure using PRAGAMA AUTONOMOUS TRANSACTION to store inserted or updated value in table?
Thanks in advance.Hi,
A trigger is designed to be a part of a transaction, not it's end.
It is like following these steps (not really accurate, but should give an idea):
1. programA issues INSERT statement on tableA
2. 'control' goes over to the database
3. constraint checks happen
4. the associated triggers on tableA do their work (e.g. fetching a sequence value for a primary key)
5. 'control' goes back to programA
6. programA decides if a commit (no error occurred) or a rollback (error case) has to be issued.
Did this help? Probably not, I'm not happy with what I wrote, but anyway... :) -
How to build a query based on(UNION) 3 vendor InfoObject
Dear Experts:
I have a requirement to build one query based on 3 vendor InfoObjct: 0VENDOR + 0VEN_COMPC + 0VEN_PURORG.
I tried to build a multiprovider upon these 3 infoobjects, but when I Identify(Assign) the key for each InfoObject, supposely there should be 3 InfoObject for me to check (0VENDOR, 0VEN_COMPC and 0VEN_PURORG) so that I can UNION these 3 infoobjects together on vendor number. But since the reference infoobject of these 3 vendor master data is different, I can not check the 3 together.
Can anybody let me know how to build that query? I only need vendor number show once, and the attributes of 0VEN_COMPC and 0VEN_PURORG can be union to 0vENDOR.
Any post would be appreciated and thank you all in advance!
Best Regards!
TimHi,
you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
regards
Siggi
Maybe you are looking for
-
Need my user account to have sysdba rights. Can't get it to work.
Hi All, I have installed sql developer and i don't know how to change my user account to have system rights. when i try to login as sysdba i keep getting errors. I have tried a tutorial, the one were you're suppose to create an hr account but I can't
-
I need to redirect visitors to another an alternate web page if they have less than Flash Player 7. I have javascript that lets me display a link the the page, but I want it to happen automatically. I'm guessing I need some kind of onLoad javascript
-
Attachments to Service Request
Hi, MY requirement is to save the attachments to a service request in some specific folder rather than the default folder. For that i am trying to get pointers by debugging the standard functionality to check where are these attachments stored and ho
-
Inserting records took a long time!
Hi all, I am using Form 6i and 8i (8.1.5). Tried to insert detail records (after querying the master) and sometimes Form 6i displays 'working' messages (appears like crashed). I check the task manager and it seems running OK. I wait for 3 minutes bef
-
Exception on Graceful Shutdown
hi While graceful shutdown, Its not getting shutting down properly and getting the Exception. Exception in myserver.log file: ####<Aug 30, 2004 12:51:38 PM GMT+05:30> <Info> <JMS> <BDC1-3ad83> <myserver> <Graceful shutdown task> <<WLS Kernel>> <> <BE