Multi-frame Forms

I have a need to create and publish a multi-frame form. It
will use mostly Dynamic text boxes and checkboxes. I have all of
the instances named but now need a starting point to get it to POST
to a PHP script. Any pointers greatly appreciated.

Thanks kglad - I've looked at your site and you are obviously
very well qualified to comment! I guess I was looking for a simpler
explanation. Can anyone post me any example code of say a 2 page
form with the appropriate AS which I can then copy and mod or do I
need to employ a coder?

Similar Messages

  • Creating a cfhttp multi part form post for google docs upload

    Hey all,
    If you saw my last thread, you know I am working with google docs and uploading documents to it. Well I got basic document uploading working, but now I am trying to include meta data. Google requires you to include the metadata with the actual file data and seperate them by using a multi part form upload. I don't know exactly the process for doing so, but they have a handy code snippet of the desired results at
    http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDoc s
    So I am basically trying to mimic that payload, however I am continually getting an error stating that there are no parts in a multi part form upload.
    <errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>InvalidEntryException</code><internalReason>No parts detected in multipart message</internalReason></error></errors>
    to be exact. I am not really sure what I am doing wrong here. I figure it is one of two things, either I am not including the actual data in the payload properly (I am currently using a body type param for the payload, but I have also tried a formfield named content to deliver it. Neither worked). So maybe I need to do something else tricky there? The other thing which I am not reallly sure about is the content-length attribute. I don't know exactly how to calculate that, and I read in another forum that a content length attribute was messing that guy up. Right now I am just taking the lenght of the payload string and multiplying by 8 (to get the number of bytes for the entire payload) but hell if I know if that is right. It could be I just don't know how to set up the parts for the message, it seems pretty straight forward though. Just define a boundary in the content-type, then put two dashes before it wherever you define a new part, and two dashes trailing the last part.
    Anyway, here is my code, any help is much appreciate. I'm a bit beyond my expertise here (not really used to trying to have to roll my own http requests, nevermind multipart post form data) so I'm kinda flailing around. Thanks again.
    <cffunction name="upload" access="public" returnType="any" hint="I upload the document." output="false">
        <cfargument name="filePath" type="string" required="false" hint="file to upload.">
        <cfargument name="docType" type="string" required="yes" hint="The document type to identify this document see google list api supported documents">
        <cfargument name="parentCollectionId" type="string" required="no" hint="the name of the collection/collection to create (include collection%3A)">
        <cfargument name="metaData" type="struct" required="no" hint="structure containing meta data. Keyname is attribute name, value is the value">
        <cfset var result = structnew()>
        <cfset result.success = true>
        <cftry>
            <cfif structkeyexists(arguments,"parentCollectionId")>
                      <cfset arguments.parentCollectionId = urlencodedformat(parentCollectionId)>             
                      <cfset result.theUrl = "https://docs.google.com/feeds/default/private/full/#arguments.parentCollectionId#/contents">
                <cfelse>
                        <cfset result.theUrl = "https://docs.google.com/feeds/default/private/full/">
            </cfif>
             <cfoutput>
                  <cffile action="read" file="#arguments.filePath#" variable="theFile">
                <cfsavecontent variable="atomXML">
                     Content-Type: application/atom+xml
                    <?xml version='1.0' encoding='UTF-8'?>
                    <entry xmlns="http://www.w3.org/2005/Atom" xmlns:docs="http://schemas.google.com/docs/2007">
                      <category scheme="http://schemas.google.com/g/2005##kind"
                          term="http://schemas.google.com/docs/2007###arguments.docType#"/>
                        <cfloop collection="#arguments.metaData#" item="key">
                            <#key#>#arguments.metadata[key]#</#key#>
                        </cfloop>
                    </entry>
                    --END_OF_PART
                    Content-Type: text/plain
                    #theFile#
                    --END_OF_PART--
                </cfsavecontent>       
            </cfoutput>      
            <cfset result.postData = atomXML>
            <cfhttp url="#result.theUrl#" method="post" result="httpRequest" charset="utf-8" multipart="yes">
                <cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#getAuth()#">
                <cfhttpparam type="header" name="GData-Version" value="3">
                <cfhttpparam type="header" name="Content-Length" value="#len(trim(atomXML))*8#">           
                <cfhttpparam type="header" name="Content-Type" value="multipart/related; boundary=END_OF_PART">
                <cfhttpparam type="header" name="Slug" value="test file --END_OF_PART">
                <cfhttpparam type="body" name="content" value="#trim(atomXML)#">
            </cfhttp>
            <cftry>
                   <cfset packet = xmlParse(httpRequest.fileContent)>
                <cfif httpRequest.statusCode neq "201 created">
                    <cfthrow message="HTTP Error" detail="#httpRequest.fileContent#" type="HTTP CODE #httpRequest.statusCode#">
                </cfif>
                <cfset result.data.resourceId = packet.entry['gd:resourceId'].xmlText>
                <cfset result.data.feedLink = packet.entry['gd:feedLink'].xmlText>
                <cfset result.data.title = packet.entry.title.xmlText>  
                <cfset result.data.link = packet.entry.title.xmlText>    
                <cfcatch>
                     <cfset result.data = httpRequest>
                </cfcatch>
            </cftry>       
            <cfcatch type="any">
                 <cfset result.error = cfcatch>
                <cfset result.success = false>
            </cfcatch>
        </cftry>   
        <cfreturn result>
    </cffunction>
    Also, this is what my atomXML data ended up looking like when it got sent to google. This isn't the WHOLE request (it doesn't include the headers, just the body).
    Content-Type: application/atom+xml
    <?xml version='1.0' encoding='UTF-8'?>
    <entry xmlns="http://www.w3.org/2005/Atom" xmlns:docs="http://schemas.google.com/docs/2007">
    <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/docs/2007#document"/>
    <TITLE>Woot Test</TITLE> </entry>
    --END_OF_PART
    Content-Type: text/plain
    I'm a test document lol!
    --END_OF_PART--

    Woot, I got it. I had to send the gData version number, and change the URL.
    Here is the working function.
    <cffunction name="upload" access="public" returnType="any" hint="I upload the document." output="false">
        <cfargument name="myFile" type="string" required="false" hint="file to upload.">
        <cfset var result = "">
        <cfset theUrl = "https://docs.google.com/feeds/default/private/full">
        <cffile action="read" file="C:\website\xerointeractive\testing\test.txt" variable="theFile">
        <cfset fileSize = createObject("java","java.io.File").init("C:\website\xerointeractive\testing\test.txt").length()>
        <cfhttp url="#theURL#" method="post" result="result" charset="utf-8" >
            <cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#getAuth()#">
            <cfhttpparam type="header" name="Content-Type" value="text/plain">
            <cfhttpparam type="header" name="Slug" value="test file">
            <cfhttpparam type="header" name="GData-Version" value="3">
            <cfhttpparam type="header" name="Content-Length" value="#fileSize#">
            <cfhttpparam type="body" value="#theFile#">
        </cfhttp>
        <cfreturn result>
    </cffunction>

  • How to commit primary key in a multi level form

    Hi ,
    I am using Jdeveloper 10.1.2.3. ADF - Struts jsp application.
    I have an application that has multiple levels before it finally commits, say:
    Level 1 - enter name , address, etc details -- Master Table Employee
    Level 2 - Add Education details -- Detail Table Education
    Level 3 - Experience -- Detail Table Experience.
    Level 4 - adding a Approver -- Detail Table ApplicationApproval
    In all this from Level 1 I generate a document number which is the primary key that links all these tables.
    Now if User A starts Level 1 and moves to level 2,he gets document no = 100 and then User B starts Level 1 and also gets document no = 100 because no commit is executed.
    Now I have noticed that system crashes if User B calls a vo.validate().
    How can I handle this case as Doc no is the only primary key.

    Hi,
    This is what my department has been doing even before I joined and its been working for our multi user environment for these many years.
    We have a table called DOC_SRNO which will hold a row for our start docno , next number in running sequence. the final number. We have this procedure that returns next num to calling application and increments the next num by 1 in the table. and final commit on the application commits all this.
    I am not sure how this was working so far but each of those applications were for different employees. I am assuming this is how it worked.
    Now in the application that I am working on, has no distinct value. So two users could generate the same docno and proceed.
    I will try the DB sequence but here is what I tried. I call the next num from DOC_SRNO and I commit this table update and then proceed with this docno so at a time both gets different docno's.
    But my running session crashes when I go to next level to insert into the detail table of my multi level form. Here when I try to get the current row from the vo which is in context, it crashes.
    Here's the steps.
    Three tables : voMainTable1 and voDetailTable1 and voDetailTable2.
    voMainTable1 on create row1- I generate new docno - post changes
    voMainTable1 on create row2- I genrate another docno - post changes
    set voMainTable1 in context
    Now I call voDetailTable1 and to get the docno to join master detail, I try to get voMainTable1.getCurrentRow. Here it crashes.
    How can I avoid this

  • Duplicate form fields across multi-page forms

    Hello!
    I have some multi-page forms which include a few identically laid out pages; pages which take a long time to manually set up (nearly 100 fields per page, of varying sizes and positions)...
    I tried to duplicate the fields from one page to the others, which worked; but they are identical fields, meaning text input into one will likewise be seen in the other pages. I need the other pages to be unique, even though they look identical (field-wise they look identical, the background images for my form distinguish the actual contents of each field).
    Copy/Paste is the same as duplicate.
    I can just do that and then manually rename a few hundred fields; but at that point I am not much better off than manually placing the fields. Some, but not much.
    Is there any way to do this?

    I would look at using the template object within for this task.

  • Multi Page form

    Hi,
    used the Insert Record From Wizard from Developper toolbox and it's working like a charm! However, my form is too long and I was wondering how I could make that form a multi page form.
    Is it possible to split that form in 3 parts, and by clicking to the NEXT PAGE button, have the form validation showed for the 1st part before going to the second part?
    Sorry for my english, I speak french,
    with thanks,
    Roseline Paquin
    Montreal

    I'm also trying to figure this out for a 5 page form (it's an application form). The only difference is that the client wants to wait until the end to capture the information to the database to avoid incomplete entries.
    I found some code (on a forum somewhere) that worked OK for the first 4 pages - it's in PHP. I then use ADDT for the final database entry to create the record. When you click to go to the next page (put the next page in as the form action) PHP writes all the previous page's data as a hidden input fields. Each field is named the same as the MySQL database columns.
    // lists previous form values as hidden input tags
    foreach($_POST as $key=>$value) {
    if ($key!="submit") {
    $value=htmlentities(stripslashes(strip_tags($value)));
    echo "\t
    \n";
    So I just include this little snippet just below the form tag on each page that I want to pass the form data to.

  • Multi page form id - sessions? cookies? url?

    i want to display display records just inserted into mysql database on a result page of multi page form.
    the page won't just display the record set.
    i get this error message.....
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    here is my code....below:
    <?  session_start();?>
    <?php require_once('Connections/product.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $primaryKey = $_SESSION['form']['insertKey'];
    mysql_select_db($database_product, $product);
    $query_Recordset1 = "SELECT * FROM capital WHERE cap_id = $primaryKey";
    $Recordset1 = mysql_query($query_Recordset1, $product) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    where did i go wrong?

    thanks for ur anser ....but i still get same error message
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    after using this code as u sugested
    $primaryKey = $_SESSION['form']['insertKey'];
    mysql_select_db($database_product, $product);
    $query_Recordset1 = "SELECT * FROM capital WHERE cap_id = ".$primaryKey."";
    $Recordset1 = mysql_query($query_Recordset1, $product) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    pls what is wrong?
    thanks

  • How to update hidden item after submit of multi tab form

    Hi everyone,
    I have a multi tab form which is being used to insert records into a table. One of the columns I have included in the form source is 'hidden' and i want this item to be populated with the current date and time for each row, when I press the submit button. I have tried to achieve this by creating a PL/SQL process on the Page with the following details:
    Process point: 'On Submit - After Computations and Validations'.
    Source: :P5_DATE_ENTERED := :SYSDATE_YYYYMMDD;
    However, when I test the Page I get the following error on pressing Submit:
    'Error ERR-1002 unable to find ID for item P5_DATE_ENTERED...'
    So, I'd be very grateful if anyone can advise me as to how to achieve this basic functionality,
    cheers,
    Kevin.

    Hi,
    Thanks for the reply, I had considered that and I think that probably is the best approach. However, I'd like to know why my method of trying to do it in APEX doesn't work as it seems such a simple thing to want to do,
    regards,
    Kevin.

  • GL_SET_OF_BKS_ID in R12 Multi-Org Form

    Hi,
    I am migrating a 11i form into R12. In R12 it will be a Multi-Org form. For that I have created operating unit items for selecting operating unit.
    I am using MO_GLOBAL.set_policy_context to set selected operating unit context.
    I have 2 profiles being used in my form i.e. ORG_ID and GL_SET_OF_BKS_ID.
    After doing all this exercise mentioned above, ORG_ID value is being retrieved correctly using FND_PROFILE.VALUE but still value of GL_SET_OF_BKS_ID is blank.
    Is there any option available to set this profile value other than FND_PROFILE.put like MO_GLOBAL set ORG_ID value.
    Regards,

    For question 1:
    Changing set_of_books_id to ledger_id in subledgers may be a very bit hit in datamodel changes.
    I think they have changed that in SLA / GL, as Accounting Convention (4th C) has been added to SOB.
    http://realworldoracleapps.blogspot.com/2009/02/r12-financials-overview-and-new.html
    For question 2:
    Yes, set_of_books_id and ledger_id are one and the same. SLA will take care of the mapping.
    You may check the link http://www.orafaq.com/node/2242
    By
    Vamsi

  • How to find the First block....in a multi block form

    hi
    How i can find which is the first block in a multi block form....
    ( there are n number of forms with multi blocks...so
    i need to generalise the code to find the first block in all of
    the forms)
    regards
    Kris

    If you searched in the on-line help for "First", you would find that the Get_Form_Property built-in provides two: First_Block and First_Navigation_Block.

  • Updating current record using SET_CUSTOM_PROPERTY in a multi-record form

    Hi,
    I have a multi record form and am using the SET_CUSTOM_PROPERTY method in the when validate trigger of an item. The problem is that it updates all records in the form instead of updating just the current record.
    Any inputs to resolve this would be helpful.
    Thanks

    I cannot reproduce the issue here.
    I have modified the sample dialog shipped with th article to have a block that displays 2 records
    <p>See the screenshot here</p>
    Here is the code in the When-Button-Pressed trigger:
      Set_Custom_Property( 'BLZ.BEAN', 1, 'READIMGFILE', 'd:/coyote.jpg' ) ;
      Set_Custom_Property( 'BLZ.BEAN', 2, 'READIMGFILE', 'd:/oracle_community.gif' ) ;So everything is ok for me.
    Francois

  • Secure, multi-section form with administrative rights

    I want to create a form that has sections we'll call "yes", "no", and "maybe". Only one section is visible at any time, and only someone with administrative rights can choose which section is visible. Once the section is chosen and the form saved, that section cannot be changed by anyone without admin rights. Can this be done in Acrobat?
    The proposed use process would go something like this:
    1. Admin receives order and pulls the form.
    2. Admin clicks "yes", "no", or "maybe" (tab? radio button?) to reveal the applicable section.
    3. Admin fills in some portions, saves the form, and passes it down the line.
    4. Down the line, the form is opened and the rest of the form is filled. If "yes", "no" or "maybe" is clicked, nothing happens because this user has no admin rights.
    5. The completed form is saved.
    I know it would save a lot of effort to make three separate forms. The reason for the single, multi-section form is so the other two sections can be filled on a later date. This saves the effort of refilling the other parts of the form with same data, or changing same data on three separate forms. In addition, admin can open a filled form and click among the different sections to review each section off the one form.
    Did that make sense? If so, can it be done in Acrobat?

    Please also tell me if what I have in mind can't be done so I can stop chasing this idea.

  • Multi lingual form

    Hi all,
    Can you give me an idea on how to make a multi-lingual form. Lets say I have a form and I want it to accept Chinese language or convert it into a Chinese language. How will I do this stuff? Because we are developing a system here which will be eventually used in Hongkong.
    Thanks
    null

    Hi,
    In the development state, there is no need to change the NLS_LANGUAGE for database server and developer. But when you install the database server and developer runtime for your users, you must set the NLS_LANGUAGE to traditional Chinese. The database service may failed if you change the NLS_LANGUAGE after installation.
    Regards,
    George

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • Multi-part form problem (array & session help needed)

    I have a multi-part form that consists of 3 pages(forms) which each save data to the session. When the final form is complete, I insert the session variables to the DB via a FINISH button.
    I now want to take another step. Page 2 of this multi-part form allows users to add "items". Presently, they can add only 1 item, and move the page 3 by hitting a next button. I would like to add a "Add another item" button that goes to the page 2 form again, allowing more items to be entered. I believe I need an array/table to do this, but don't know how I might do this in the session.
    Is it possible to create an array in the session? If so, how? If not, how might I approach this?
    I am trying to avoid inserting to the database (a remote db) until after a "preview" page following the form.
    Any ideas? Thx in advance.

    Hi,
    This forum thread may help you:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50623
    Thanks,
    Creator Team.

  • Multi Block Form Navigation Problem

    Hiii
    i have got a multi block form the problem that am facing now is that when running the FORM and when am over one of the my canvases then if i tried to press any of :
    (Tab button,Down arrow ) the canvas changes to ANOTHER Datablock ...
    i dont know what is the problem ....
    ANY SUGGESTIONS
    OMD

    Make the datablock you want to show on top as the first block in the object navigator.
    HTH.
    Regards,
    Arun

Maybe you are looking for

  • How Many Functions And Keyboard Shortcuts etc. Are Missing From FCE 4 ?

    Seven hours ago I set out to discover the answer to this but I got side-tracked and discovered my camera had a microphone channel missing ! So is there anything missing from FCE4 ? There have been spurious claims that things like "Export to Soundtrac

  • Can't install due to only 10 character s/n

    I just bought a refurbished 30GB Ipod Photo. When I tried to install Itunes with the cd that came with it, it asked for an 11 character serial number but mine is only 10 characters. What do I do?

  • Customizing HUM graphs

    Hi, we have HUM 1.2. In all the graphs, the top Y axis value is related to the maximun measure showed by the graph, would it be possible to configure HUM for always showing a top value of 100? Thanks.

  • Error installing Oracle SOA Suite on Windows Server 2003

    Hi I have installed SOA Suite 10.1.3.1 on WIndows XP with no problems. I'm trying to install it on Windows Server 2003 and in the Oracle Web Service Configuration Assistant I get: Output generated from configuration assistant "Oracle Web Services Ins

  • What's the difference between XI basis and regular basis?

    I am an SAP basis admin for years. Now my corp starts to use XI. What is the difference between XI basis and regular basis if there is any? Thanks!