Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Dynamic Prompts in PeopleSoft

Dynamic Prompts in PeopleSoft

Ratings: (0)|Views: 1,461|Likes:
Published by naveen

More info:

Published by: naveen on Apr 06, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less





Dynamic Prompt Table Depending on a Drop Down Value
Bottom of Form
In this post I will attempt to explain how to dynamically assign a prompt table depending on adrop down value (see image below)The table behind the grid is PORTAL_SECDYVW and as you can see from the image below,the PORTAL_AUTHNAME field has %EDITTABLE defined as a prompt table. ThePORTAL_AUTHNAME is the "Name" column you see on the grid. Now, we would want to assign table PSCLASSDEFN_SRC as prompt if the drop down value isPermission list and PSROLEDEFN_SRCH if the value is Role.
Kannappan Krishnan
on December 21st, 2007 under 
.Most of the times we would have faced a requirement of having Dynamic prompt table for Record Fields. Also PeopleSoft itself very much utilizes Dynamic Prompt table. How can weachieve the same in our project????Here we goThis is accomplished by 2 ways1.Using EDITTABLE fields for Prompt Table2.Using Dynamic Views
1. Usage of EDITTABLE Fields
In this method,
 Prompt table property of Record Fields should be assigned with %EDITTABLE value
. Actually what does it mean????Prompt Table value for the Record Field is populated from the Record FieldDERIVED.EDITTABLE value. The Record Field DERIVED.EDITTABLE should be assignedwith value either in one of the Peoplecode events (Either in FieldChange or FieldEdit or RowInitevents). This is simply done byDERIVED.EDITTABLE = “PERSON_NAME”;
EDITTABLE Field should be present in the SAME Page, where Record Field (In thiscase, The Field is nothing but EMPLID) is also referred. If the Record Field is not coming under Component Search Record Field, there is no need for placing the EDITTABLE field in the Page.
2. Usage of Dynamic Views
As we know, while creating Dynamic view, there is no need to specify the SQL. This SQLshould be generated dynamically and the same should be assigned to the Record Field.Say for example, if we see the above Record Field TASK_PROFILE_ID, it is assigned withdynamic prompt table view TL_TSKGRP_DVW and this view TL_TSKGRP_DVW isdynamically initialized by the following Peoplecode, which can be assigned both in FieldChangeand RowInit events of the Record Field TASK_PROFILE_ID.RECORDNAME.TASK_PROFILE_ID.SqlText = “SELECT T.TASKGROUP,T.TASK_PROFILE_ID, T.DESCR FROM PS_TL_TSKGRP_PRF_W T WHERET.TASKGROUP = ‘” | &TSKGRP | “‘ AND T.EFFDT =(SELECT MAX(T1.EFFDT) FROMPS_TL_TSKGRP_PRF_W T1 WHERE T1.TASKGROUP = T.TASKGROUP ANDT1.TASK_PROFILE_ID=T.TASK_PROFILE_ID AND T1.EFFDT<= %datein( ‘” | &maxdate |“‘) )”;
How to use a Dynamic prompt table? What we need to do for it? What should be the length of the field to be added in the DERIVED record?

Activity (34)

You've already reviewed this. Edit your review.
geekeight liked this
1 thousand reads
1 hundred reads
Iacob Madalina liked this
Aniruddha Joshi liked this
nareshkumar09 liked this
Avisek Banik liked this
Avisek Banik liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->