Use of valueset
hi
how to use valuseset with dropdowns and can u explain use of value set.
thanks
kishore
Hi,
Valueset is used when we want to convert a simple variable of
buiit in type(String) to simple type at Run time.
Say u have created a context ctx_String of string type and u
want to convert it into simpletype At runtime(This we generally
do when we are not sure of values that would come into
simpletype and will be decided at runtime.)
Use the following code .
IWDAttributeInfo attr_a_Schemas = wdContext.getContext().getRootNodeInfo().getAttribute("ctx_String");
ISimpleTypeModifiable isim_a_schemas = attr_a_Schemas.getModifiableSimpleType();
IModifiableSimpleValueSet isval_a_schemas = isim_a_schemas.getSVServices().getModifiableSimpleValueSet();
isval_a_schemas.clear();
for(int i = 0; i < someLength; i++)// some length equals to ur no of values that u would like to add to this simple type
isval_a_schemas.put("KEY"+i,"DESCRIPTION");//here key and description can be replaces by ur value.
In order to use it in dropdown u can bind this context
ctx_string to dropdownbykey.
In order to get the selected value u can use
wdContext.currentContextElement().getCtx_String();
Regards
Surender Dahiya
Similar Messages
-
Custom Report Not fetching values for parameter of report (Valueset not pop
Hi,
I am running custom report on Oracle application R12. This report parameters used standard value set for fetching purchase order number. The value set is not populating any values for the custom report. but for the standard report where this valuse set populating proper result.
It's bit Supprising ...the same valuset populating values for standard reports but not for custom report developed by me.
Value set query using table valueset and getting values from po_headers (View)
ThanksHi All,
Luckily I have been able to rectify the problem !
I tried retrieving the output using LISTCUBE to show the SID of the InfoObject also for which I was unable to get the data. After the report successfully gave the output for those I/O, I checked again I could see the data in the I/O maintain master data !
It worked like magic to me !
But I could guess that since it is a virtual I/O therefore it is not able to retrieve the data from the table directly and is able to do that only after the SID of this I/O is retrieved.
(If a characteristic does not have any master data, the values from the SID table are displayed for the "Values in Master Data Table" mode.)
Closing the thread !
Regards
Shalabh -
the query below , i am using in valueset :
select * from AR_LOCATION_VALUES
Where ar_location_values.location_segment_qualifier =
'COUNTRY' and ar_location_values.location_structure_id in ( select location_structure_id from ar_system_parameters )
how to use this query to set in R12?
Thankshi
i am using the following query in 11i and i want to use the same in R12 :
SELECT ar_location_values.location_segment_description,ar_location_values.location_segment_value,location_segment_id
FROM AR_LOCATION_VALUES
WHERE ar_location_values.location_segment_qualifier = 'COUNTRY'
AND ar_location_values.location_structure_id IN
(SELECT location_structure_id FROM ar_system_parameters)
note: the table ar_location_values is obsolette in R12 so what is the replacement table in R12 for this? -
Additional Columns field in Table Valueset
Hi all,
I would like to display all fields of a table using a valueset.I tried with giving additional columns names of that table at specified column while creating table valueset.But these additional fields are not shown when i select that Valueset that is attached to a parameter for a report.What i need to do inorder to display additional colums of a table using a valueset?
Thanks & Regards
BinuFirst test the feasibility that the enhancement can be done or not.
For finiding the exists in the program :
1> find the program name of the tcode under the status button.
[hope you can do tht]
2> go to table modsap
3> execute it .in the member give <programname> and then execute
4> it will give you the userexits if any .
in the form
endform
you can write your own code.
Else you can go for badi also.
1>go to se24
2>give the class name - CL_EXITHANDLER
3>in the methods go to get_instance
4>create a breakpoint in the first call method
5>then run your transaction /nMIR7.
6>it would stop .find the badi's.
7>if you get any as per your requirement ,work upon it .
Friend i am not working anywhere , i am just learning sap-abap.this is what i knew regarding enhancements . -
Flexfields using Profile Values - How to get working?
I've setup a Flexfield on a table. the DFF uses a valueset to verify the input. Your normal forms based stuff. the DFF shows up on the OAF page nicely. the value set on the DFF has a where clause that usess the profile mfg_organization_id
ie
where organization_id = :$PROFILES$.MFG_ORGANIZATION_ID
However, at run time the LOV does now show anything. it's like the profile has not org id.
How do you get around this?
ThanksI would agree on that setting profile value from code make no sense,in fact profiles are used in a reverse way.Based on profile value you can have ur logic.
--Mukul -
Help needed in setting Default Value of Concurrent program parameter
Hi All,
I have 3 parameters in a concurrent program
Org ID From
Org ID To
Currency Code
In the Currency Code parameter I want to use the following query in the Default Value
SELECT currency_code
FROM gl_sets_of_books sob, org_organization_definitions ood
WHERE ood.organization_id = :p_org_id_from
AND sob.set_of_books_id = ood.set_of_books_id
Now, at runtime this gives me an error of p_org_id.
Can anyone please advice me how can I use this parameter(p_org_id_from) in the above query.
Any help will be really appreciated.
Regards,
ShrutiHi Helios,
Thaks a lot for the help.
I modified the query as follows:
SELECT currency_code
FROM gl_sets_of_books sob, org_organization_definitions ood
WHERE ood.organization_id = :$FLEX$.ORG_INTRANSIT
AND sob.set_of_books_id = ood.set_of_books_id
Here ORG_INTRANSIT is the valueset I am using in From Org ID and To Org ID.
Now the problem which I face is that when I use ORG_INTRANSIT valueset in both From Org as well as TO Org then the Currency is not defaulted, but if I use it in either From Org or To Org then the Currency is defaulted.
How can I resolve this. Please help.
Regards,
Shruti -
Fnd_date4 is not takeing in my date value set
Hi,
I have one Concurrent Program In this Concurrent Program one parameter is used as valueset Fnd_date4,i try just the valueset list of values and try to put what ever ther in previous fnd_date4, it is not working,it is showing Error app-fnd-01086 the valueset(fnd_date4) on segment (p_start_date) can not be used,the format type date and datetime use obsolete plz use standard date and standard date time.
once i used this two valuesets my concurrent program got errored,
In my report i used width of this parameter 20,
RDBMS : 9.2.0.6.0
Oracle Applications : 11.5.9
But this same program i ran in another insatnce it is working with old valueset fnd_date4 only,
Please help how i use same valueset fnd_date4 for this concurrent program
in the metalink i got one note id 183699.1,
I try ran this sql script in my database and script is ran fine but program is not running after that also
plz tell how to use this script.
Thank'sPl see MOS Doc 351735.1 (Error When Attaching Fnd_date4 Value Set To Dff Segment Fnd-01086)
HTH
Srini -
Performance issues of SQL access to AW
Hi Experts:
I wonder whether there is performance issues when using SQL to access AW. When using SQL to access cubes in AW, the SQL queries the relational views for AW objects. And the views are based on OLAP_TABLE function. We know that, views based on any table function are not able to make use of index. That is to query a subset of the data of a view, we would have to full scan the view and then apply the filter. Such query plan always lead to bad performance.
I want to know, when I use SQL to retrieve a small part of data in an AW-cube, will Oracle OLAP engine retrieve all data in the cube and then apply the filter? If the Oracle OLAP engine only retrieves data needed from AW, how can she did it?
Thanks.For most requests the OLAP_TABLE function can reduce the amount of data it produces by examining the rowsource tree , or WHERE clause. The data in Oracle OLAP is highly indexed. There are steps a user can take to optimize the index use. Specifically, pin down the dimension(s) defined in the OLAP_TABLE function LIMITMAP via (NOT)IN lists on the dimension, parent, level or GID columns. Use of valuesets for the INHIER object, instead of a boolean object.
In 10g, WHERE clauses like SALES > 50 are also processed prior to sending data out.
For large requests (thousands of rows) performance can be a problem because the data is being sent through the object layer. In 10 this can be ameliorated by wrapping the OLAP_TABLE function call with a SQL MODEL clause. The SQL MODEL knows a bit more about the Olap options and does not require use to pipe the data through the object layer.
SQL MODEL example (note no ADT defintion, using of auto ADT) This can be wrapped in a CREATE VIEW statement :
select * from olap_table('myaw duration session', null, null, 'measure sales as number from aw_sales_obj dimension d1 as varchar2(10) from geog ...rest of dimensions')
sql model dimension by (d1, d2, d3, d4) measures (sales, any attributes, parent columns etc...) unique single reference rules update sequential order ()
Example of WHERE clause with above select.
SELECT *
FROM (select * from olap_table('myaw duration session', null, null, 'measure sales as number from aw_sales_obj dimension d1 as varchar2(10) from geog ...rest of dimensions')
sql model dimension by (d1, d2, d3, d4) measures (sales, any attributes, parent columns etc...) unique single reference rules update sequential order ()))
WHERE GEOG NOT IN ('USA', 'CANADA')
and GEOG_GID = 1
and TIME_PARENT IN ('2004')
and CHANNEL = 'CATALOG'
and SALES > 50000; -
Hi,
We use translatable valueset for capturing positions.
Values both english and arabic have been entered for this translatable valueset.
Positions have been created in the positions window using this valueset.
One position has been assigned for an employee.
When we change the arabic value from old value to new value in the valueset, the new value is not reflecting in the assignment screen.
Kindly advise us.
Regards
MuruganHi Hussein,
Your Question:
What is the application release? What is the database version and characterset?
Ans:
R12 (12.0.6)
Has this ever worked?
Ans:
If we requery the position and edit some data and save, then the arabic value is getting reflected in the assignment screen.
Is the issue with this form only?
Ans:
Job and Position screens.
Your Question:
Does this mean it keeps the old value? Can you reproduce the issue if you login to the English interface and use English characters?
Ans:
Yes. It keeps the old value (old value is getting displayed)
Regards
Murugan -
Aggregating data loaded into different hierarchy levels
I have some problems when i try to aggregate a variable called PRUEBA2_IMPORTE dimensinated by time dimension (parent-child type).
I read the help in DML Reference of the OLAP Worksheet and it said the follow:
When data is loaded into dimension values that are at different levels of a hierarchy, then you need to be careful in how you set status in the PRECOMPUTE clause in a RELATION statement in your aggregation specification. Suppose that a time dimension has a hierarchy with three levels: months aggregate into quarters, and quarters aggregate into years. Some data is loaded into month dimension values, while other data is loaded into quarter dimension values. For example, Q1 is the parent of January, February, and March. Data for March is loaded into the March dimension value. But the sum of data for January and February is loaded directly into the Q1 dimension value. In fact, the January and February dimension values contain NA values instead of data. Your goal is to add the data in March to the data in Q1. When you attempt to aggregate January, February, and March into Q1, the data in March will simply replace the data in Q1. When this happens, Q1 will only contain the March data instead of the sum of January, February, and March. To aggregate data that is loaded into different levels of a hierarchy, create a valueset for only those dimension values that contain data. DEFINE all_but_q4 VALUESET time
LIMIT all_but_q4 TO ALL
LIMIT all_but_q4 REMOVE 'Q4'
Within the aggregation specification, use that valueset to specify that the detail-level data should be added to the data that already exists in its parent, Q1, as shown in the following statement. RELATION time.r PRECOMPUTE (all_but_q4)
How to do it this for more than one dimension?
Above i wrote my case of study:
DEFINE T_TIME DIMENSION TEXT
T_TIME
200401
200402
200403
200404
200405
200406
200407
200408
200409
200410
200411
2004
200412
200501
200502
200503
200504
200505
200506
200507
200508
200509
200510
200511
2005
200512
DEFINE T_TIME_PARENTREL RELATION T_TIME <T_TIME T_TIME_HIERLIST>
-----------T_TIME_HIERLIST-------------
T_TIME H_TIME
200401 2004
200402 2004
200403 2004
200404 2004
200405 2004
200406 2004
200407 2004
200408 2004
200409 2004
200410 2004
200411 2004
2004 NA
200412 2004
200501 2005
200502 2005
200503 2005
200504 2005
200505 2005
200506 2005
200507 2005
200508 2005
200509 2005
200510 2005
200511 2005
2005 NA
200512 2005
DEFINE PRUEBA2_IMPORTE FORMULA DECIMAL <T_TIME>
EQ -
aggregate(this_aw!PRUEBA2_IMPORTE_STORED using this_aw!OBJ262568349 -
COUNTVAR this_aw!PRUEBA2_IMPORTE_COUNTVAR)
T_TIME PRUEBA2_IMPORTE
200401 NA
200402 NA
200403 2,00
200404 2,00
200405 NA
200406 NA
200407 NA
200408 NA
200409 NA
200410 NA
200411 NA
2004 4,00 ---> here its right!! but...
200412 NA
200501 5,00
200502 15,00
200503 NA
200504 NA
200505 NA
200506 NA
200507 NA
200508 NA
200509 NA
200510 NA
200511 NA
2005 10,00 ---> here must be 30,00 not 10,00
200512 NA
DEFINE PRUEBA2_IMPORTE_STORED VARIABLE DECIMAL <T_TIME>
T_TIME PRUEBA2_IMPORTE_STORED
200401 NA
200402 NA
200403 NA
200404 NA
200405 NA
200406 NA
200407 NA
200408 NA
200409 NA
200410 NA
200411 NA
2004 NA
200412 NA
200501 5,00
200502 15,00
200503 NA
200504 NA
200505 NA
200506 NA
200507 NA
200508 NA
200509 NA
200510 NA
200511 NA
2005 10,00
200512 NA
DEFINE OBJ262568349 AGGMAP
AGGMAP
RELATION this_aw!T_TIME_PARENTREL(this_aw!T_TIME_AGGRHIER_VSET1) PRECOMPUTE(this_aw!T_TIME_AGGRDIM_VSET1) OPERATOR SUM -
args DIVIDEBYZERO YES DECIMALOVERFLOW YES NASKIP YES
AGGINDEX NO
CACHE NONE
END
DEFINE T_TIME_AGGRHIER_VSET1 VALUESET T_TIME_HIERLIST
T_TIME_AGGRHIER_VSET1 = (H_TIME)
DEFINE T_TIME_AGGRDIM_VSET1 VALUESET T_TIME
T_TIME_AGGRDIM_VSET1 = (2005)
Regards,
Mel.Mel,
There are several different types of "data loaded into different hierarchy levels" and the aproach to solving the issue is different depending on the needs of the application.
1. Data is loaded symmetrically at uniform mixed levels. Example would include loading data at "quarter" in historical years, but at "month" in the current year, it does /not/ include data loaded at both quarter and month within the same calendar period.
= solved by the setting of status, or in 10.2 or later with the load_status clause of the aggmap.
2. Data is loaded at both a detail level and it's ancestor, as in your example case.
= the aggregate command overwrites aggregate values based on the values of the children, this is the only repeatable thing that it can do. The recomended way to solve this problem is to create 'self' nodes in the hierarchy representing the data loaded at the aggregate level, which is then added as one of the children of the aggregate node. This enables repeatable calculation as well as auditability of the resultant value.
Also note the difference in behavior between the aggregate command and the aggregate function. In your example the aggregate function looks at '2005', finds a value and returns it for a result of 10, the aggregate command would recalculate based on january and february for a result of 20.
To solve your usage case I would suggest a hierarchy that looks more like this:
DEFINE T_TIME_PARENTREL RELATION T_TIME <T_TIME T_TIME_HIERLIST>
-----------T_TIME_HIERLIST-------------
T_TIME H_TIME
200401 2004
200402 2004
200403 2004
200404 2004
200405 2004
200406 2004
200407 2004
200408 2004
200409 2004
200410 2004
200411 2004
200412 2004
2004_SELF 2004
2004 NA
200501 2005
200502 2005
200503 2005
200504 2005
200505 2005
200506 2005
200507 2005
200508 2005
200509 2005
200510 2005
200511 2005
200512 2005
2005_SELF 2005
2005 NA
Resulting in the following cube:
T_TIME PRUEBA2_IMPORTE
200401 NA
200402 NA
200403 2,00
200404 2,00
200405 NA
200406 NA
200407 NA
200408 NA
200409 NA
200410 NA
200411 NA
200412 NA
2004_SELF NA
2004 4,00
200501 5,00
200502 15,00
200503 NA
200504 NA
200505 NA
200506 NA
200507 NA
200508 NA
200509 NA
200510 NA
200511 NA
200512 NA
2005_SELF 10,00
2005 30,00
3. Data is loaded at a level based upon another dimension; for example product being loaded at 'UPC' in EMEA, but at 'BRAND' in APAC.
= this can currently only be solved by issuing multiple aggregate commands to aggregate the different regions with different input status, which unfortunately means that it is not compatable with compressed composites. We will likely add better support for this case in future releases.
4. Data is loaded at both an aggregate level and a detail level, but the calculation is more complicated than a simple SUM operator.
= often requires the use of ALLOCATE in order to push the data to the leaves in order to correctly calculate the aggregate values during aggregation. -
Reg: To get One employee multiple times based on condition
Dear Friends,
I need your help regarding this Requirement.
Need to display the contractual years for every employee in the valueset.
If the emp is hired on 29-Feb-2004, then his contractual years should be as follows:
1) 29-feb-2004 to 28-feb-2005
2) 1-mar-2005 to 28-feb-2006
3) 1-mar-2006 to 28-feb-2007
4) 1-mar-2007 to 29-feb-2008
5) 29-feb-2008 to 28-feb-2009....... and so on up to current year ( *9* times)
If hired on 1-Jan-1997, then *16* times
I have developed the above logic in CASE <logic> END statement. The logic is depends on row number partitioned by Employee number. So now i need to incorporate it in SELECT statement since it will be used in Valueset. For this i need multiple rows for each employee as above number of times. So that i can create view accordingly.
Please do needful...
Thanks in advance..If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
So here it goes: How can I play a single sound multiple times at the same time? Is that possible?Ummmm, if you're using a clip, you'll have to maintain one copy per object that needs to play the sound concurrently. You could keep one master copy, and then create copies of the clip as necessary to play them, and then just dump the copies to decrease memory consumption.
A second idea would be to write your own Clip class. Esentially, all you would need to do is dump some sound data onto a TargetDataline to play it. It'll handle the buffering and playing at the correct speed itself. If that's all you did, you should be able to dump multiple times from the same instance and play it multiple times.
Obviously, that's just a theory. In practice, it may not work that way... -
Report parameter Error - APP-FND-01564: ORACLE error 1422 in FDFGVD
Dear Team,
I have created one valueset as
QRAP_GL_PER_FROM and QRAP_GL_PER_TO both are taking from GL_PERIOD_STATUSES table with where condition as where application_id =201 and SET_OF_BOOKS_ID=2021
when i am using this valueset as a parameter in Report getting following error.
APP-FND-01564: ORACLE error 1422 in FDFGVD
Cause: FDFGVD failed due to ORA-01422: exact fetch returns more than requested number of rows.
The SQL statement being executed at the time of the error was: SELECT PERIOD_TYPE,PERIOD_NAME VALUE, PERIOD_NAME DESCRIPTION, NVL('N', 'N'), NVL(TO_NUMBER(NULL), -1), NULL, NVL('Y', 'Y'), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0) FROM GL_PERIOD_STATUSES WHERE ( APPLICATION_ID =201 AND SET_OF_BOOKS_ID=2021) AND PERIOD_TYPE = :X and was executed from the file &ERRFILE.
can you please suggest me how to solve this issue.
Thanks in advancePlease see the solutions in these docs.
PERWSPEI APP-FND-01564: Oracle error 1422 in FDFGVD when Querying EIT [ID 782060.1]
In Position Form, When Querying For Position, Error: APP-FND-01564: ORACLE error 1422 in FDFGCD [ID 457483.1]
APP-FND-01564: ORACLE error 1422 in FDFGVD When Opening The Contact Form [ID 1141013.1]
Thanks,
Hussein -
How to use the Table Valueset in another Table Valuset
Hi Friends ,
I have one requirement let me explain you the scenario.
in one segment of the Keyflex filed i need to get the all the grades of the business. which i did using the table valueset.
now in another segment of the kff, i need to get all the grade steps depending on the selected grade.
like if i have a grades say G1,G2,G3,G4...........
and grade steps
for G1-steps(1,2,3,4,5,6)
for G2-steps(1,2,3,4)
for G3-steps(1,2,3)
for G4-(1,2,)
etc.
Now my requirement is if the user select the grade G1 from the valueset. then in the next filed of the segment should come only those steps which are valid for that grade.
i hope i have given clear pic of my requirement can anyone please help me out, how to proceed for this.
thanks in advance.Well, I know what you're talking about, but this is something that is usually done in different ways depending on the front end interface being used.
Are you referring to Oracle Forms? Apex? .NET? Java? or what???
This forum is for SQL and PL/SQL questions, so doesn't relate to a particular interface. SQL and PL/SQL do not have key flex fields, so, either ask your question in the correct sub-forum or give us more details as to your requirements. -
How to use VO attribute in a page region in valueset of flex segment
I have a seeded oracle page - having 2 regiions
The first region shows basic employee information like job, position etc
The second region shows a flexfield having 4 segments.
My requirement is to restrict the value in first segment based on the employee's job.
e.g If employee is of Job A-, Segment 1 shoows the values as A.B.C in the poplist
if employee if of Job X, segment 1 has to show only values as AA, BB in the poplist
how can i use the vo attribute as paramter to my segment 1 valueset?
Thanks,
LalOne way to achieve this is:
1.Make sgement 1 to show A.B.C in the poplist.
2.Create a new segment which shows AA, BB in the poplist. So now total no. of segments are 5.
3. In the second region in the page display only first 4 segments. For displaying only required segments refer "DEscriptive Flex Fields" in Dev Guide.
4. Create another region (3rd region) which displays segments 2 to 5. i.e. this does not show segment1
5. Using PPR display required region based on the value in Job field.
Note: this approach is suitable when you have very less no. of options in Job field to choose from.
-Anand -
My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!
Hi,
You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
You can find a sample scripts if you google around.
What do you mean "how to map any API to our staging table" ?
You should do at least the following mapping (which column(s) in the staging table will provide these information):
- the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
- the value set values and description
Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do...
Maybe you are looking for
-
Cam no longer works with new version
i have installed the latest version of flashplayer but now my webcam no longer works on video chat sites like chatoulette what should i do please?
-
Dear All, With regards to clients requirement, at the time of Goods issue form either one storage location to other Sloc or one plant to other plant in the batch field when i put F4 and after providing receptive material and plant the list of availab
-
How do I open raw files from my Canon 6D in Photoshop CS5.1?
Just tried to open raw files from my Canon 6D in Photoshop CS5.1. An error message appeared: " Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please vi
-
Updating Firefox messed up my Mac
When I updated Firefox, my Mac started acting weird. First Mail started rrunning very slowly and then Safari. After I rebooted, all of my cons in the Dock went back to the original Default setting. I do not know how to get my old Mac back!
-
Need help. Can't open Mail.app since upgrading to Yosemite
The app just crashes on launch. it is configured to work with Exchange. The error message I got is as follows: Process: Mail [791] Path: /Applications/Mail.app/Contents/MacOS/Mail Identifier: com.apple.mail V