Urgent: pre-populate a form

Hi,
I have a nice form but it is empty in the beginning - I want to load
some data depending on the logged in user into the form.
I saw in the example demo where this was done in 2 staep with a frame driver.
But I want to have some user information displayed on the site where every user can
change this address and telefonnumbers.
I get the user with "PORTAL.wwwctx_api.get_user" but I don't know how
to get the form loaded for this user.
How can I do this?
Please help.
Thanks
Michael

Michael:
No, I had pre-filled a form I made myself all within a PL/SQL procedure, so it was pretty straight forward for me. I am not yet familiar with the other method being presented, but I'm new at using PL/SQL & Portal.
Below, find the procedure code I used...this form gets fields pre-filled with a particular survey's info when the user pulls it up based on the incoming parm. I'm now trying to use Portal's form builder vs. creating my own from scratch, but I haven't yet had to pre-fill a form built this way yet...
-- Procedure 24 body
Procedure MODIFY_SURVEY_INFO_FORM (p_Survey_ID IN NUMBER) IS
-- Purpose: Form for modifying a survey.
-- Author : Ed Maurer, My Company IT, Tampa
-- Date : 14 May 2002
-- MODIFICATION HISTORY
-- Person Date Comments
v_Survey_Title VARCHAR2(60);
v_Survey_Desc VARCHAR2(100);
v_Start_Dt VARCHAR(12);
v_End_Dt VARCHAR(12);
err_num NUMBER;
err_msg VARCHAR2(100);
BEGIN
SELECT Survey_Title, Survey_Desc, TO_CHAR(Start_Date, 'mm/dd/yyyy'), TO_CHAR(End_Date, 'mm/dd/yyyy')
INTO v_Survey_Title, v_Survey_Desc, v_Start_Dt, v_End_Dt
FROM Portal30_Custom.Survey_Info
WHERE Survey_ID = p_Survey_ID;
htp.print('
<div align="LEFT">
<font size=2 face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=1>Modifying a survey is simple!
<ul>
<li>First, fill in the fields in the below form then click the "Submit" button.
<li><font size=2>Upon clicking the SUBMIT button, you will have the opportunity to modify the questions for this survey.
<li>If no modifications are necessary for the survey info, click on the MODIFY SURVEY QUESTIONS button below to directly modify the survey questions. </font></div>
</ul>
<FORM NAME="ModifySurveyInfo" ACTION="/pls/portal30/PORTAL30_CUSTOM.POLL_CENTER.MODIFY_SURVEY_INFO" METHOD="POST">
<table border=0 cellspacing=1 bgcolor=#CCCCCC>
<tr>
<td background="/portal_images/form_blue.gif" colspan=2 align=center><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-1 color=#ffffff><B>Modify Survey Info</B></td>
</tr>
<tr>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><strong>Survey Title</strong></td>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><INPUT TYPE="text" NAME="p_Survey_Title" Value="'||v_Survey_Title||'" SIZE="60" MAXLENGTH="60"> </td>
</tr>
<tr>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><strong>Survey Description</strong></td>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><INPUT TYPE="text" NAME="p_Survey_Desc" Value="'||v_Survey_Desc||'" SIZE="70" MAXLENGTH="100"> </td>
</tr>
<tr>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><strong>Survey Start Date</strong><br>Date the survey starts on in format mm/dd/yyyy </td>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><INPUT TYPE="text" NAME="p_Start_Dt" Value="'||v_Start_Dt||'" SIZE="10" MAXLENGTH="10"> </td>
</tr>
<tr>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><strong>Survey End Date</strong><br>Date the survey ends on in format mm/dd/yyyy</td>
<td background="/portal_images/form_blue.gif"><font face="Verdana, Tahoma, Arial, Helvetica, sans-serif" size=-2 color=#ffffff><INPUT TYPE="text" NAME="p_End_Dt" Value="'||v_End_Dt||'" SIZE="10" MAXLENGTH="10"> </td>
</tr>
<input name="p_Survey_ID" type=hidden value="'||p_Survey_ID||'">
<TR>
<td align=center background="/portal_images/form_blue.gif" colspan=2><INPUT TYPE="SUBMIT" VALUE="Submit"> <INPUT TYPE="RESET" VALUE="Reset"></TD>
</TR>
</TABLE>
</FORM>');
htp.print('
<FORM NAME="ModifySurveyQuests" ACTION="/pls/portal30/PORTAL30_CUSTOM.POLL_CENTER.MODIFY_SURVEY_QUESTS_SEL_FORM" METHOD="POST">
<input name="p_Survey_ID" type=hidden value="'||p_Survey_ID||'">
<input name="p_Survey_Title" type=hidden value="'||v_Survey_Title||'">
<input TYPE="SUBMIT" value="Modify Survey Questions">
</FORM>');
EXCEPTION
WHEN OTHERS THEN
err_num := SQLCODE;
err_msg := SUBSTR(SQLERRM, 1, 100);
htp.print(err_msg || ' Contact IT Dept (MODIFY_SURVEY_INFO_FORM proced)');
END; -- Procedure MODIFY_SURVEY_INFO_FORM

Similar Messages

  • Pre-populate dynamic form with XFDF

    I am trying to pre-populate a form saved in Designer as a dynamic form. If the form is saved in either the 6.0 compatibile, or the 7.0 static pdf file format, my XFDF file works fine. If I open the PDF in Designer and save it as a dynamic form, the XFDF file opens the form in reader, but no data is populated.
    I have searched everywhere and haven't found any information on this. Any help is greatly appreciated.

    OK... so here's the update. The PDF file only has one vertically expanding field (a "Description") field on the page and it takes up about 2 vertical inches. If I open the PDF in Reader I can type into it and everything expands and flows correctly. If I use an XFDF file that contains a lot of data in the Description field, everything comes up perfectly. However, if I either modify my XFDF file, OR create an XFDF file that only has a tiny amount of data in the Description field (1-2 lines), the PDF is opened and no data is displayed anywhere in the form. If you click on a text field, any data that should be there magically appears. When you navigate out of that field, it disappears.
    This only happens if the XFDF file has a Description field value that doesn't cause the PDF Description field to expand past the 2 inches.
    I am new to Designer 7.0 and this is my first file that has dynamic flowing fields... is this a bug, or am I missing a property somewhere?
    Thanks

  • What product we need on the server to pre-populate XFA form created using LiveCycle Designer?

    We run our web applications on IBM Lotus Notes/Domino server (Version 8.5.3). I need to figure out what is that specific server component that we need to install on our server just to pre-populate data on to the XFA forms. (We don't need to merge PDF files, or attach any workflow, or submit data entered in the XFA forms to any web server.)
    I understand that Adobe LiveCycle ES4 is a suite of products that does a lot more than what we need to do. So, in that suit of products which specific product is that we need to buy & install on our server that enables us to use java code to populate data on to the XFA forms. Also, will that server component work on IBM Lotus Notes/Domino server or is it only going to work on a J2EE server?
    I appreciate a response. Thanks.

    I am sorry, but I am still confused. Out of the following modules of Adobe LiveCycle, which one is that I need to do the filling of the PDF forms.
    Forms Standard and Pro
    Reader® Extensions
    Process Management
    ECM Connectors
    Correspondence Management
    Output
    PDF Generator
    Rights Management
    Digital Signatures
    Do I have to install the entire suite or just one of these will be enough for filling data?

  • How to pre-populate ADF form with data?

    Hi Guys,
    Just wondering how you go about generating a pre-populated ADF form. Is it something that is done though the ADF designer and Business Objects? or do you have to create the Database tables seperatley and bind them into ADF and the workflow. Specifically I want this so a user is presented with a several drop-down lists when the initiator human task is run.
    Thanks,
    Ross

    Hi Ross
    1. Yes, in the very first place in the Database, we added all the data manually for all the Lookups. Its our own custom Schema. We are planning to provide some simple admin screens in a different WebApps to maintain these lookup values. Note that this is a different simple ADF App, with one EJB Layer and EJB Layer calling this database and getting/updating the values.
    2. ALSO, we have some lookup values that we get from totally another System/application like Oracle EBS Suite. For this, we already have a custom schema created. In this custom schema, we have some stored procedures created by the EBS database developers (they are more familiar with EBS). Now within our EJB layer, we use JPA architecture, call these stored procedures, and get all the lookup values and show in the TaskDetails page. These lookup values are maintained in EBS itself, so we do not have any custom admin screens within our SOA/BPM project.
    In conclusion, for our SOA/BPM applications, we have like 2 Databases. First database is for SOA Components where we run RCU comand and it has all SOA_INFRA, MDS, ORABAM schemas etc. The second database is for our custom schema specific to our application. Here we have our own lookup tables, custom tables and any cutom stored procedures that coonect to external EBS etc. From Weblogic console, we just create a Datasource for this second database and use that in JPA layer (persistence.xml file). For the first database, you already know that at domain creation itself, it will create all datasources also.
    Thanks
    Ravi Jegga

  • Pre-populate Child Forms

    Hi Gurus,
    Does anyone knows how can I prepopulate child forms?
    I need to associated the provisioned user to some AD groups, depending on his attributes (Position, Department,etc). I'm able to create an adapter with the logic to add the user to related group, but don't know how to add this group in the child form.
    When I attach my prepopulate adapter in the child form, the Group field is populate properly, but how can I simulate a click on "Add" button to add this group, which starts the process task "Add User To Group"?
    Additionally, I must not use the access policies to do this feature (just because some customer's business rules).
    Any idea will be helpful.
    Thanks

    Hi Alex,
    1. Implement the Java class to put your logic using addProcessFormChildData under tcFormInstanceOperationsIntf.
    2. Create the process task adapter using this java class.
    3. Create an unconditional process task (i am assuming you required it only once), set Allow multiple instances to false and integrate the adapter create in step 2.
    4. Under the task dependency tab put 'Create User' as preceding tasks.

  • How do I programatically pre-populate pdf form?

    I would like to merge a xml document into a pdf file programatically (php). Is this possible, or is Adobe LifeCycle server a requirement?

    If the author of the form allows it, forms can be filled out in Adobe Reader. That's assuming of course they are "real" forms with data input fields, not just graphical pages that emulate printed forms. If they are proper forms, you will need to use the current version of Adobe Reader/ Acrobat or else form fields may not appear or be ignored e.g. by the built-in PDF handler in Google Chrome.
    Mylenium

  • Need to pre-populate and Extract data from static PDF form

    Hi Jasmin or Jayan or anyone else that can answer.
    I have a requirement to use Digital Signatures.  Because of that, the forms must be static PDFs and the form variables will be “document form”.  I want to pre-populate the form via an SQL query and custom render process and render it as PDF so that the submitter can apply a digital signature when he/she is done and ready to submit for approvalSubsequent approvers will also digitally sign the form.  I know that I will specify the custom render to render only once and thereby preserve the signature(s) on the form.  I do, however, need to extract data from the form to control the business process.  I cannot access the data in the form the same way I do with an xdp and I also cannot pre-populate the same way I do with an xdp. 
    Any suggestions on how to attack this?

    Parth, one problem with your approach is he will submit PDF and therefore you won't be able to put the PDF in a variable that's suppose to contain just xml.
    The prepopulation should be the same. If you start off with an xdp, then you will call a render service that merges data with your xdp to create a PDF.
    Now when you submit, you will submit the entire PDF back in the Document Form variable. In Workbench, you can use the FormDataIntegration service to extract data from that PDF that's being stored under Document Form var/object/document and put it in an xml variable. Then you can just use xPath to do your condition.
    I'm assuming you'll just pass that same Document Form variable to the next step, because if you do any change to the PDF it'll brake the signature.
    Let me know if I missed anything.
    Jasmin

  • Child Form Pre Populate

    Hi Experts
    I want to pre populate child form fields from user Definition. But I am not able to do so. I have read so many posts in forum that it is not possible. I can't use access policy.
    I need, whenever user raise a request for resource then few fields of child form should be pre populated. I have to put these fields only on Child Form not Parent that's why I am stuck here.
    Fields are pre populating but add button I have to click. Is there any way to do it.
    Any input from your side will be very helpful.
    Edited by: user11257983 on Aug 23, 2009 4:23 PM

    If they need to be pre-populated then just don't let the user supply a value. If you know it's always going to be provisioned a specific way on the child table, just trigger the task after the create user to insert the entry into the child table. Why does the end user have to see something that they have no control to change?
    -Kevin

  • Pre-populate a PDF from XML-file in Reader 7.07

    After the release of Reader 7.07, we can't pre-populate our forms any more.
    We are using the Java-script to pre-populate/import the XML into the document, but now the user has to select the XML file from an "open file dialog", so this solution doesn't work for us any more.
    I have seen in the forum that you can certify the PDF, but this doesn't work either, because when you open the PDF and imports the XML it's not certified any more.
    So can anyone tell me what is the procedure, for pre-populating a form in Reader 7.07
    Thanks
    Søren Høy

    After I removed the comma in the filenames of my problematic test files, this solution worked for me, too. I was able to again save the PDFs as enabled for commenting in Adobe Reader (to make them reviewable).
    Thank you, thank you!
    This definitely looks like a bug to me, because a comma IS allowed in filenames in both the PC Windows and Mac OS X operating systems.
    Andrea

  • How to Pre-Populate the user information during Assign Task operation

    Hi ,
    I have a requrirement to Pre-Populate the form fields (Name, Email, Phone etc...) when a task is assigned to a user. The users are dynamically assiged, so I am using the Find User and the Assign Task services to locate and assign the task to the user. Since I have a User variable that is a result from the Find User operation, I was hoping to retrieve the user information with the attributes of the User type.
    I tried to use the Set Value service to set the form field (Email) with the email attribute of the User object type i.e.
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   ->  /process_data/facilityAuthority/object/@email
    However I get the following error when I try to do this - com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.
    Is it possible to retrieve the user information from the User object? If so how do I get the values for the User attributes (Name, Email & Phone etc...) so that I can populate them in the form?
    Thanks,
    Samanthapudi

    Hi Han Dao,
    If you are facing an exception of the form "com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.", It is because the system is trying to cast a Byte Stream into w3c Document and failing. To resolve this we can explicitly cast this byte stream to appropriate data type (String in previous example). To do so we can use a SetValue operation.
    As an example
    Setting
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   -> /process_data/facilityAuthority/object/@email
    results in the exception
    so we can modify it to
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   -> string(/process_data/facilityAuthority/object/@email)
    Please let me know if this does not resolve your issue.
    Thanks

  • Can I edit a form in Muse so that it will pre-populate a PayPal transaction?

    I need to include a way for people to make donations on the website I am creating. I know how to use the PayPal widget to add a "donate" button, but I need more than that. I want to have a form the people fill out ON MY WEBSITE, and then when they click the "donate" button it should take them to PayPal where the info they entered is already entered into PayPal's form.
    PayPal includes instructions on how to tweak the html code for a form so that the correct variables will be picked up by PayPal... however I'm not sure if there is a way to do what I need to do without creating a form from scratch in html and then importing it to Muse that way (via Object>Insert HTML...) I'd rather not create the form from scratch if I can avoid it, simply because I'm not that well versed in html code.
    Thanks for any suggestions you can offer.
    Laura

    That would be the correct way to test out the pre-populate function.
    https://www.paypal.com/in/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside
    http://stackoverflow.com/questions/15491382/pre-populate-send-payment-data-on-paypal
    Thanks,
    Sanjit

  • OIM: Retrieve data from stored procedure,  pre populate it in Resource form

    Hi,
    I need to retrieve data form a stored procedure that i have created . This data needs to be per populated in the Iplanet resource from. The stored procedure will have one input string and one output string.
    Thankz,
    Sanjay Rulez

    1. Prepare OIM Admin Console to interact with an Oracle Database, by adding jdbc jar files in the lib Directory of OIM Console.
    2. Restart OIM Console and Create a database Resource
    3. Create an Pre-populate adapter Task with a "Stored Procedure" Type
    4. Invoke you Procedure.
    The main problems can be around datatype conversion between Java and Oracle database.
    For instance, all Oracle NUMBER type are mapped on java LONG type, and you need to deal every time with conevsrion between INTEGER and LONG in the adapter task.

  • Pre-populate the process form as part of Role Alignment - Need suggestion

    Hi,
    As part of implementation we are going to take over the Provisioning of AD (Via Groups-->Access Policy) using OIM which was initially configured to provision manually. Now as part of migration we required to assign a base group to the users who has already AD reconciled resource (and align it with policy via SQL updates -->POL_key is process form, OIU_POLICY_BASED in OIU table). We are doing this as part of direct SQL updates. The other part of the requirement to align the process form values using the configured pre-populate adapters (for e.g. if the current value of any attribute is X and the prepopulate adapter suggest that it should be Y then the migration should also update this attribute.) We tried to use the prepopulateProcessForm API of tcFormInstanceOperationsIntf but it seems this is working only when the System Validation is in Pending state. The other option we are thinking of putting java code and then call the prepopulate adapter by passing each input params and updating tha value via API if any update is required. Just wondering if there is anything else we can use as part of bext practices. If anyone has done this kind of implemntation please let us know your inputs. Thanks

    Hero,
    You want to ...
    1. create users
    2. give them privileges
    3. assign them to groups
    4. assign a default groups to users
    You will need to do this in the following sequence of steps...
    1. Populate the user entries in OID, and assign the default group
    2. Create the groups in OID and assign the users to them
    3. Assign the appropriate portal privileges to the groups
    For step 1 and 2, I'll have to refer you to the OID Administrator's Guide for Release 9.0.2.
    This document contains a lot of good information, but in particular, you'll want to review Appendix I ...
    "Migrating User Data from Application-Specific Repositories". This addresses the LDIF migration tool
    and describes the schema elements needed for the IAS user accounts.
    For step 3, the easiest way would be to assign the privileges to the groups through the user interface. Once the groups are defined
    in OID, you can select them via the Portal UI to assign the portal privileges to them.
    The proper place to locate portal instance-specific groups is under the portal instance group base, which is
    cn=portal_groups, cn=groups, <subscriber_base>. The following white paper
    may be helpful to understand the organization of the directory information tree.

  • How to pre-populate a text form?

    I just created a text form and would like to have it
    pre-populated with the number 1. can someone help me with
    this?

    You want to pre-populate a field in that form with the number
    '1'?
    <input type="text" name="number" value="1">
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "SilverRoad" <[email protected]> wrote in
    message
    news:f7lr8j$9ch$[email protected]..
    >I just created a text form and would like to have it
    pre-populated with the
    >number 1. can someone help me with this?

  • Pre-Populate Text Filed Adobe X Pro Form

    All,
    I appreciate any assistance you can give. I am looking for a way to have text fields pre-populate information after a user selects an item from a dropdown menu.
    For example:
    Dropdown menu 1: User selects South Carolina
    Drop Down menu 2: User selects product name
    Text fields populate with the product information.
    Dropdown 1 and 2 will dictate what product information will be displayed.
    Is this possible? I have attached a screen shot to see what I am looking to do.  Please let me know!  Thank you!!!

    The product information would have to be in the form and not linked to an external source. So lets say the user selects SC on dropdown 1. They then select Timberline on dropdown 2. The SC selection will be rule to have a specific set of product options to have in the dropdown. When the user selects Timberline in dropdown 2, the information in the text fields would have to auto-populate for information only available in the SC state and that specific product. 
    For text box 1 (header is Colors Available) this would generate the words Black, White, Green, Blue. These would be loaded possibly in that text box? These colors are available for SC.  Now, if the user would select NC in dropdown 1, and Timberline in dropdown 2, it would display a different set of colors available in text box 1 (Colors Available) such as Orange, Grey, etc.
    This is essential how it would work for the text fields. The triggers would be based on the state and product selected in the drop down boxes which would autopopulate the rest of the text boxes per section.
    Does this help?  Thank you for the reply.

Maybe you are looking for

  • Clearing the report from cache....

    Hello all,,, In my project iam using crystsal report for eclipse to generate reports. Iam using a .jsp page to call my report.(which i got it from the examples of CRE). The name of my jsp page is poi.jsp The name of my Crystal report is CrystalReport

  • PDF prints from Acrobat 9 formatting off and security limitation after mac 10.9.2 OS security update

    When I print to Acrobat from Word, the output formatting gets messed up (single lines turn to doubles, column to right shifts to the left) ; I can't combine two documents; AND I get a security erro message when I try to reduce file size.

  • Rubber casing & usb port

    I noticed a few days ago that the rubber outside of my pixi is peeling away at the left 2 corners of the phone.  It just looks as though it is coming off from the rest of the back-piece, on the corners.  I have also noticed lately that the usb port d

  • CAN ANYONE SEND ME PROGRAMS ON BSP APPLICATION

    HI,           I AM NEW TO BSP APPLICATION, SO CAN ANYONE SEND ME SOME GOOD & INTERACTIVE PROGRAMS ON BSP APPLICATION.          THANKS IN ADVANCED.

  • Error mirroring across sites - Cluster 3.1, EMC Clariion

    Hi, Sun are here helping us build a 2 node cluster on V245s, solaris 10, Solstice Volume Manager,Cluster 3.1 using EMC CX700s for disk storage. Everthing appeared to be Ok until we tried to sync the disk sets across sites. Some disk sets worked Ok ,o