SDK 4.5 Form Component and States

I have created a s:Form component that will be used throughout my application. But FormItems are displayed depending on specific states of the main application file.  I left the s:states element and its s:State children in the main application and just moved the portion of the form that I wanted to become a component.  But I am getting State " " was referenced without being declared in my component mxml file.  When I move my s:states elements from my main application file over to my component mxml file, the form does not react correctly.
So how do I get my form to correctly react to changing states in the main application???
Tony
States elements that are residing in my main application file:
<s:states>
          <s:State name="home"  />
          <s:State name="searchMedia"  />
          <s:State name="smResults"  />
          <s:State name="lgResults"  />
          <s:State name="addMedia"  />
     </s:states>
The above states are tied to "navigation" buttons that also live in the main application file.
Here is the form component that I tried to create, but did not work ("Almost" only works in horseshoes and handgrenades):
<?xml version="1.0" encoding="utf-8"?>
<s:Form xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx">
     <s:layout>
          <s:TileLayout clipAndEnableScrolling="true" orientation="rows"
                    paddingBottom="5" paddingTop="5"
                    paddingRight="5" paddingLeft="5"
                    columnAlign="justifyUsingWidth" verticalGap="6"  />
     </s:layout>
     <fx:Declarations>
          <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <s:FormHeading label.addMedia="Add Media to Library" label.searchMedia="Search Library"  />
     <s:FormItem label="File Name:">
          <s:layout>
               <s:HorizontalLayout  />
          </s:layout>
          <s:TextInput  />
          <s:Button includeIn="addMedia" label="Browse"  />
     </s:FormItem>
     <s:FormItem label="Course Contained In:">
          <s:TextInput  />
     </s:FormItem>
     <s:FormItem label="Keyword:">
          <s:TextInput  />
     </s:FormItem>
     <s:FormItem label="Type of Media (.jpg, .psd, etc):">
          <s:TextInput  />
     </s:FormItem>
     <s:FormItem label="Media size" includeIn="addMedia">
          <s:layout>
               <s:HorizontalLayout  />
          </s:layout>
          <s:TextInput id="horizWidth"  />
          <s:Label text="(width) X "  />
          <s:TextInput id="vertWidth"  />
          <s:Label text="(height)"  />
     </s:FormItem>
     <s:FormItem label.searchMedia="Date (Range) Added:" label.addMedia="Date Added: ">
          <s:layout>
               <s:HorizontalLayout  />
          </s:layout>
          <mx:DateField id="fromDate" includeIn="searchMedia"  />
          <mx:DateField id="toDate" includeIn="searchMedia"  />
          <mx:DateField id="dateAdded" includeIn="addMedia"  />
     </s:FormItem>
     <s:FormItem id="submitSearch" horizontalCenter="0">
          <s:Button bottom="5" label.searchMedia="Search"
                    label.addMedia="Submit" click="currentState='smResults'"
                    bottom.searchMedia="5" horizontalCenter.searchMedia="0"
                    bottom.addMedia="5" horizontalCenter.addMedia="0"  />
     </s:FormItem>
</s:Form>
Did I do something fundamentally wrong???

Thanks, Andrei!
Same exact problem here and your suggestion works.
However, it breaks things visually in terms of UI.
Will most likely have to address the data provider to limit the data.
Have you filed a JIRA bug with Adobe?
https://bugs.adobe.com/jira/browse/
Vitali

Similar Messages

  • Transient form component and action listener

    Hi,
    I am binding a transient component to my h:form and wonder why my action listener is not called when update the form. Could someone give me a hint if this is possible? Are transient forms ignoring action listeners? Can some one give my a short example?
    Maciek

    The actionlistener can do whatever you want. Not sure what you need exactly but it might be better idea to create some Action classes and use them on each button:
    http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html

  • Need Help w/Form Component

    running SJSC2U1 on XP
    Need help with using the form and associated components to create a search functionality in a jspf page..
    I have used the form component and attempted to use the properties method="get" action="http://www.aaa.com/query.html" name="getit" etc...
    I am told (error msg) that these methods, etc. are not valid for the "form" component
    Does anyone now how to create a search functionality in a jspf page using components, be it "markup" layoutPanel, Form or whatever..
    a simple example (code) would be great.
    Thanks

    running SJSC2U1 on XP
    Need help with using the form and associated components to create a search functionality in a jspf page..
    I have used the form component and attempted to use the properties method="get" action="http://www.aaa.com/query.html" name="getit" etc...
    I am told (error msg) that these methods, etc. are not valid for the "form" component
    Does anyone now how to create a search functionality in a jspf page using components, be it "markup" layoutPanel, Form or whatever..
    a simple example (code) would be great.
    Thanks

  • Unable to retrieve topology component health states. This may be because the admin component is not up and running.

    Unable to retrieve topology component health states. This may be because the admin component is not up and running.
    I have deleted Search Service App and created again.
    But still same error can anyone give me check list.. I need it very urgently.
    Please reply
    Thanks
    Raj

    Hi Raj,
    This issue can be caused by many reasons, so please check the ULS log for detailed error message.
    For SharePoint 2013, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Here are some similar issues and the corresponding solutions for you take a look:
    http://blogs.msdn.com/b/bkr_sharepoint/archive/2014/06/09/sharepoint-2013-search-topology-activation-error-quot-unable-to-retrieve-topology-component-health-states-this-may-be-because-of-the-admin-component-is-not-up-and-running-quot.aspx
    http://blogs.msdn.com/b/sambetts/archive/2013/08/28/sp2013-win2012-unable-to-retrieve-topology-component-health-states-this-may-be-because-the-admin-component-is-not-up-and-running.aspx
    http://techtrainingnotes.blogspot.com/2013/09/unable-to-retrieve-topology-component.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Adobe reader does not always down load IRS and state tax forms.

    Can I pay for the Adobe Reader service so it will always download the Fed and state tax returns in  PDF format.  Now, most of the time nothing happens even though I have Adobe Reader X.   go on line, bring up the form and then  no matter what I do nothing prints.
    You can always send an E mail to [email protected] as I am not sure I will be able to find this forum.

    Hi Peter,
    Adobe Reader is a free software to view, print and collaborate on PDF files.
    There is no paid version of it.
    Are you able to download the tax returns? If yes, are the downloaded files in PDF format?
    Try to open PDF files in Adobe Reader and try to print it. What happens when you try to do it?
    Also can you try to open any pdf using your Web Browser, ex- http://www.education.gov.yk.ca/pdf/pdf-test.pdf ant try printing it.
    Thanks and Regards,
    Nikhil

  • Component binding and state saving

    Hello,
    I have a few questions in regards to component binding and state saving (specifically in regards to the reference implementation) when the saving method is client and backing-beans are in the request scope rather than in the session scope:
    1) if a component instance is bound to a backing-bean property then does the state of that component get saved when the view state is saved?
    2) for UIData component, if the component value is bound to a list, does the actual list (after being wrapped) serve as the local data for the component? If this is the case, when the state is saved and then subsequently restored, does the list get re-created with the original number of items?
    Regards,
    Len Takeuchi

    Thanks for the quick response.
    (2) The actual list is not saved; the list will be
    re-queried on subsequent requests.The list composition may have changed by the time the list is re-queried. If the table being displayed is updatable then transfer of information from request back to the list (during Apply Request Values) may not happen properly. So does that pretty much mean that the original list has to be kept around (in the session)? If the state saving method is server then does the saved state maintain a reference to the original list across requests?
    Len Takeuchi

  • IOS Simulator build: SDK is missing GPL component X:\sdk_path\lib\aot/bin/as/as-386.exe

    Trying to build a simulator build with air 16 or 17 and iPhoneSimulator8.2.sdk I get the following error:
    SDK is missing GPL component X:\sdk_path\lib\aot/bin/as/as-386.exe
    igmake: *** [../bin/project.ipa] Error 16
    igmake: Leaving directory `X:/project/'
    I've checked various sdk versions.  Some of them have an "as-386" file, but never a "as-386.exe" file.  I tried just renaming the file (hoping for the best) but that results in this error:
    ld: in `)Ωtm♣Z, unsupported address encoding (08) of personality function in CIE
    for architecture i386
    Compilation failed while executing : ld64
    igmake: *** [../bin/project.ipa] Error 12
    Any help would be appreciated!
    Ken

    Thanks,
    Yes I know that.
    But what I was expecting was that things which worked in AIR 3.3 beta 3 would continue to work. As in this link http://blogs.adobe.com/airodynamics/2012/05/18/using-platformsdk-for-ios-on-windows/
    In fact the Release notes that you point to state:
    Platform SDK support for iOS on Windows
    Now, a developer can copy the iOS SDK folder on a Windows® machine and use the platformsdk option of adt on Windows® too.
    adt –package –target (ipa-app-store|ipa-ad-hoc|ipa-debug|ipa-debug-interpreter|ipa-test|ipa-test-interpreter) -platformsdk
    This feature is not yet available in Flash Builder. The SDK should be copied properly, i.e. the symbolic links in the iOS SDK should be converted to actual files on Windows® , else, packaging will fail.
    C

  • Where does SAP save form position and sizes?

    On my custom forms created with the SDK the SAP client saves the column sizes of matrix fields (CPRF) using the standard functionality but the form size and position is not saved.
    Does anyone know where SAP stores the form size and position for standard forms? I'd like to try to get this to work for my custom forms as well.
    Thanks!

    Hi William,
    I looked at this before and my conclusion was that the UserPrefs column of the OUSR table holds this information. When the user closes SBO, changes to the window sizes and locations are written back to this field. I checked this by doing the following (on a test database):
    1) Stored the current value of the UserPrefs field for the user in a temporary location.
    2) Logged on as the user and made changes to the size and location of certain windows.
    3) Logged out and then back in again to make sure that the new locations were saved. All windows that I'd changed still held their new sizes and locations.
    4) Logged back out and then ran an update statement to revert just the UserPrefs field back to its previous value.
    5) Logged back in and the screens had reverted back to their original sizes and locations.
    The problem is that this field has an image data type so it's impossible to decipher (and, even if you could, you can't directly alter the data in this field).
    Regards,
    Owen

  • Workflow, Form Manager and email question...

    Hi All,
    We have a client with 36,000 world-wide users of Form Manager. They need all 36,000 users to default to getting an email when a work item hits their worklist. The default is normally that this option be "un-checked"
    until each an every user goes to the Form Manager site, chooses
    "Preferences" and then "Workflow" and then places a check-mark beside
    "Send me an email when assigned a task".
    They can't depend on getting all 36,000 employees to go to Form Manager
    and do this, so a work item will surely get assigned to someone who
    hasn't done this, and will never know they got a work item in their
    worklist.
    Does anyone know how we can change the default for everyone so that this
    option is automatically "checked" for each of the 36,000 users?
    Thanks.

    Hello -
    Firstly you should go into the AdminUI component and make sure the email settings are correctly set there - the settings in the admin for email notifications will be applied to a new user. A new user is either a user who logs in for the first time or who is assigned work in a user qpac.
    Secondly for users who have already logged in you could write a simple db update statement to change all of the user's preferences. STMT would look like this:
    UPDATE tb_workflow_user SET email_task_assigned = 1
    There are other columns for the user preferences in that table as well. Also note that these fields may be of type boolean on databases which support it, others use a bit or short type.
    Good luck!
    Will@Adobe

  • Installing WorkFlow with ARES, Form Manager and Forms

    Hi All,
    I'm having issues when trying to install WorkFlow with ARES, Form Manager and Forms.
    I've followed these steps:
    1. Installed Forms v. 7.1
    2. Installed Form Manager v. 7.0.1
    3. Installed ARES v. 7.0 (using a trust directory with a keyfile, etc.)
    4. Installed Workflow v. 7.0.1 with Turnkey option checked.
    5. Ran configuration manager.
    The progress gets to 12% then displays the error code "LCMerror101" with the message "Livecycle module pdfagent-client could not be copied to working directory".
    I don't know what this error means, can someone help me?? I know the issue isn't related to disk space (20+ gigs free) and I'm using the administrator account to install. Any suggestions or tidbits of info would be much appreciated.
    Thanks,
    Stone.

    Here's a copy of the log file. lcm.log
    [2006-02-21 14:11:34,437], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@857327[monitorui,../components/monitorui,./wor king/monitorui]
    [2006-02-21 14:11:36,750], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@14b2db7[xmlform,../components/xmlform,./workin g/xmlform]
    [2006-02-21 14:11:38,718], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@a65760[fontmanager,../components/fontmanager,. /working/fontmanager]
    [2006-02-21 14:11:48,312], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@1e140bf[registry,../components/registry,./work ing/registry]
    [2006-02-21 14:12:30,593], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@161bfa3[pof,../components/pof,./working/pof]
    [2006-02-21 14:12:32,390], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@6c9220[workflow,../components/workflow,./worki ng/workflow]
    [2006-02-21 14:12:35,515], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@1ed7524[fm,../components/formmanager,./working /fm]
    [2006-02-21 14:12:39,921], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@a5c9f1[pdfagent-client,../components/pdfagent- client,./working/pdfagent-client]
    [2006-02-21 14:12:39,921], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, ERROR, Could not copy components
    com.adobe.idp.install.lcm.LCMException: Could not copy components
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:463)
    at MyAction.execute(MyAction.java:165)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Caused by: com.adobe.idp.install.lcm.LCMException: Illegal state found: File does not exist
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:554)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:508)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:459)
    ... 2 more
    [2006-02-21 14:12:40,015], Runnable bean context: My Action (bean23), MyAction, ERROR, LCMerror101{pdfagent-client}
    com.adobe.idp.install.lcm.LCMException: Could not copy components
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:463)
    at MyAction.execute(MyAction.java:165)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Caused by: com.adobe.idp.install.lcm.LCMException: Illegal state found: File does not exist
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:554)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:508)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:459)
    ... 2 more
    [2006-02-21 14:12:40,031], Runnable bean context: My Action (bean23), MyAction, ERROR, ErrorCode: LCMerror101, ErrorStr: Livecycle module pdfagent-client could not be copied to working directory.

  • Upgrade from 11i to R12 - Custom Forms,Reports and Workflows

    Dear Community Friends,
    We are planning for upgrade from oracle apps 11.5.10.2 to R12.
    We have custom Forms,Form Libraries,Reports and Workflows.
    Kindly provide me for approach on how to migrate Custom form libraries,reports and Workflows.
    I beleive, this thread will exists as one shot point for custom forms,reports,workflow upgradation from 11i to r12 with detailed steps.
    I know that many links exists here in the forum for all the above objects mentioned,but still from all those i am able to get a clear picture for oracle forms but not for custom form libraries ,reports and workflows.
    Also,this post will provide a low level,practical picture of the steps for those who are in line with this.
    Links i have read for all these in our forum are:
    For Custom Forms,
    Re: Planning to upgrade from 11i to R12
    Re: Custom forms: After upgrading 11i to R12
    ofcourse,'n' number of links exists providing metalink notes also.
    Hussain,Helios and some others also has given many updates regd this.
    For custom workflow upgradation,
    Upgrade Workflow 11i to R12
    Workflow Upgrade
    Workflow Upgrade
    For reports,links mentioned the below metalink notes:
    Do Not Compile EBS R12 Reports Using rwconverter.sh or Reports Builder from IDS 10gR2 [ID 786794.1]
    Using the OracleAS 10.1.2 Forms and Reports Builders with Oracle Applications Release 12 [ID 444248.1]
    Per my understanding, after searching in many threads,i am here by summarising the practical low level steps for custom forms migration
    Please correct me,if i am wrong.
    1) Download the Forms(.fmb's) and all PLL's(all the PLL from resource folder in AU_TOP) into a Local Machine Folder
    2) Open the forms using Forms Developer 10G and connect to DB
    3) Compile by clicking compilein Forms Developer and then save it.
    4) Upload the Saved Forms(.fmb's) into the new R12 server(system) in the respective custom paths(paths similar to 11i Server)
    5) Compile all the forms using the command like below(example command is shown below or f60 gen commands or frmcmp.sh utility) in the respective custom form paths,
    this will generate the .fmx's.
    frmcmp_batch module=FORMNAME.fmb userid=apps/apps output_file=FORMNAME.fmx compile_all=yes
    Link for compiling forms: https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=359210362972527&type=DOCUMENT&id=1085928.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=c348xvwbg_98
    6) Open the form and check in R12 instance
    As per my understanding for custom form libraries,we can just copy paste the PLL's from 11i server to R12 server (Please correct me,if i am wrong)
    Can anyone please help me out in custom reports and custom workflows.Sorry that,i could not get a practical and clear picture for reports and also for workflow even after referring many threads and metalink notes mentioned.
    As for reports,some says that Developer Suite 10g can be used and .rdf can be used in R12.
    Some says that reports should be converted to XML published as reports does not exists in R12.
    So,i am not clear on this.
    Thanks,
    Ganesh
    [email protected]

    Per my understanding, after searching in many threads,i am here by summarising the practical low level steps for custom forms migration
    Please correct me,if i am wrong.
    1) Download the Forms(.fmb's) and all PLL's(all the PLL from resource folder in AU_TOP) into a Local Machine Folder
    2) Open the forms using Forms Developer 10G and connect to DB
    3) Compile by clicking compilein Forms Developer and then save it.
    4) Upload the Saved Forms(.fmb's) into the new R12 server(system) in the respective custom paths(paths similar to 11i Server)
    5) Compile all the forms using the command like below(example command is shown below or f60 gen commands or frmcmp.sh utility) in the respective custom form paths,
    this will generate the .fmx's.
    frmcmp_batch module=FORMNAME.fmb userid=apps/apps output_file=FORMNAME.fmx compile_all=yes
    Link for compiling forms: https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=359210362972527&type=DOCUMENT&id=1085928.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=c348xvwbg_98
    6) Open the form and check in R12 instance
    As per my understanding for custom form libraries,we can just copy paste the PLL's from 11i server to R12 server (Please correct me,if i am wrong)You are right, and the steps mentioned above should be sufficient.
    Can anyone please help me out in custom reports and custom workflows.Sorry that,i could not get a practical and clear picture for reports and also for workflow even after referring many threads and metalink notes mentioned.
    As for reports,some says that Developer Suite 10g can be used and .rdf can be used in R12.
    Some says that reports should be converted to XML published as reports does not exists in R12.
    So,i am not clear on this.You can still use RDF files in R12, and just follow the approach you mentioned above, and you do not have to migrate them to XML publisher (though it is recommended, but this can be done after the upgrade as an enhancement task).
    For custom workflow, you need also to do the same thing, open them using workflow builder and make sure they work in R12 (correct the code if required and save them again in R12 once they work properly).
    Thanks,
    Hussein

  • Form 1099R and W-2 Discrepancies

    Hello,
    We encountered two separate problems in using the Tax Reporter
    (transaction code PU19).
    1st problem:
    The Federal Income Tax Withheld in Form 1099-R only showed 10 months
    worth of data but in Forms 945 and 1096, it reflected the correct
    Federal Income Tax Withheld.
    2nd problem:
    Tax Reporter was run on two separate days, for the same field
    selection. In Form W-2 State and Local Summary, it returned two
    different values for Federal Income Tax Withheld.
    To check the values for the Federal Income Tax Withheld, the Wage Type
    Reporter was run and reflected another value.
    We would greatly appreciate the help.
    Thanks and Have a nice day!
    Best Regards,
    Ann Gabutin

    Hi,
    To use SAPScript fomrs, modify table V_T5UX7.
    - Identify W2 forms you use.
    - Delimit PDF forms to past dates,
    - Delimit sapscript forms to current (eg: 01/01/2000 - 12/31/9999)
    Regards,
    Somar

  • Retrieve city and state from zip code that is entered by user

    I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
    1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
    2. I defined an application process called SET_CITY_STATE as follows:
        a. Process point: on demand
        b. type: anonymous block
        c. process text:
    <pre>
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    apex_util.set_session_state('P2_CO_CITY',v_city);
    apex_util.set_session_state('P2_CO_STATE',v_state);
    EXCEPTION
    WHEN OTHERS
    THEN
    apex_util.set_session_state('P2_CITY','Unknown city');
    apex_util.set_session_state('P2_STATE',null);
    END;
    </pre>
    3. Javascript is defined in the region header:
    <pre>
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_city_state(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_City_State',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    get = null;
    //-->
    </script>
    </pre>
    4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
    The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
    I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
    I placed the application on apex.oracle.com:
    Workspace: RGWORK
    Application: Online Certification Application (28022)
    Can someone assists, please.
    Thank you,
    Robert
    Edited by: sect55 on Jun 2, 2009 4:11 PM

    Hi Robert,
    Try using XML instead of session state -
    Change the application on demand process with the following script -
    >
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
    HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
    HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
    HTP.prn ('</body>');
    END;
    >
    in your javascript make sure you typing the application process name correctly as it is case sensitive.
    Hope this helps,
    Regards,
    M Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Help needed in forming dynamic insert statement

    HI,
    I am trying to construct a insert statement as given below.
    Please help me as to how to form this and where am i going wrong?
    i want the columns names to be auto populated when a table name is given.
    output should be like:
    ==============
    insert into tablename
    col1,col2,col3..coln)
    values
    (col1, col2, col3..coln);
    declare
    v_sql varchar2(5000);
    cnt number :=0;
    col_count number;
    name varchar2(5000); 
    TYPE string_assarrtype IS TABLE OF VARCHAR2 ( 25 ) INDEX BY VARCHAR2 ( 20 );
    arr string_assarrtype;
    BEGIN
       select count(column_name) into col_count from user_tab_columns
      where
      table_name = 'PS_D_RE_BCSREGIONMAPPING';
       v_sql:='insert into tablename (' ;
         for i  in 1..arr(col_count)
          loop
           v_sql:='v_sql' ||' '||arr(i);
          DBMS_OUTPUT.PUT_lINE(v_sql);
         END LOOP;
    END;

    Below is the actual code which i am trying to write:
    Since the below trigger logic is same for around 25/30 tables i wanted to construct a generic procedure which will take input parameter as tablename and auit_table and form the insert statement which will populate the column names which are different for different tables.
    Please guide...
    CREATE OR REPLACE PROCEDURE make_trigger(  tablename  in  VARCHAR2,
                                             auditable  in   VARCHAR2                                                                                  
    AS
    v_sql varchar(10000);
    begin
    v_sql := 'DROP TRIGGER  TRD_D_AUDIT_D'||tablename;
    dbms_output.put_line (v_sql );
    v_sql:='CREATE OR REPLACE TRIGGER TRG_D_AUDIT_D_'||tablename||' '||
    'BEFORE INSERT OR UPDATE OR DELETE ON 'tablename||' '||' REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW';
    dbms_output.put_line (v_sql );
    v_sql:= 'DISABLE
    DECLARE
    v_Operator        psoprdefn.oprid%type;
    v_Sysdate        Date;
    v_Actn            varchar2(1);
    V_AUDIT_RECNAME    PSRECDEFN.RECNAME%type;
    BEGIN';
    dbms_output.put_line (v_sql );
    v_sql:= 'If (Inserting) Then
       v_Actn    :='||'''||'A'||'''||';'||
       'Insert into '||auditable||'
                        ('||
                       AUDIT_RECNAME,
                    AUDIT_ACTN,
                    AUDIT_OPRID,
                    AUDIT_STAMP,
                    D_USER_GROUP,
                    D_GROUP_DESC,
                    D_BCS_ID,
                    D_UBR_ID,
                    D_FILTER_ID,
                    D_NAME_ACCESS_TYPE,
                    D_GLOBAL_EMP_LIST
                        Values
                    V_AUDIT_RECNAME,
                    v_Actn,
                    v_Operator,
                    v_Sysdate,
                    :NEW.D_USER_GROUP,
                    :NEW.D_GROUP_DESC,
                    :NEW.D_BCS_ID,
                    :NEW.D_UBR_ID,
                    :NEW.D_FILTER_ID,
                    :NEW.D_NAME_ACCESS_TYPE,
                    :NEW.D_GLOBAL_EMP_LIST
    end if;
    end;Edited by: user11942774 on Oct 5, 2012 11:46 AM
    Edited by: user11942774 on Oct 5, 2012 8:09 PM
    Edited by: user11942774 on Oct 5, 2012 8:10 PM

  • Error when creating a Report with Form component

    I am trying to create a new report with form component but when I try to choose the Table/View name I get a web error "404 web not found". I know for a fact that the list is working because I see the list when I create a "simple form". Is this a bug or i need to do something to get it working? thanks

    419008,
    It is a bug that has been identified and will be corrected in an HTML DB patch. There is nothing you can do to correct it.
    This bug is specific to Internet Explorer and utf-8 encoding. It is not a bug with IE, it is a bug with how we handle this for IE.
    Joel

Maybe you are looking for

  • Return values for a Form based on a procedure

    Hi, I am fairly new to Portal Applications. I have a form based on a procedure. The procedure has an IN OUT parameter and what happens at the moment is that once the submit button is pressed the IN OUT parameter is displayed on a new page. My questio

  • A simple problem with natural join

    i have 2 tables what have columns with distinct's names are referenced. natural join not works 'cose only foreign key reference this 2 tables. Have something to make table join in using an specific foreign key?? I'm using oracle9i Example: table a( a

  • File length different for a copied file. Or use checksum

    Hi I am making a backup of a file before doing some writes to the original. I first check it out of source control, then make a copy using: public static void backupFile(File f) try{ File backup = new File(f.getPath()+"_BACKUP"); if (!backup.exists()

  • Automatic print

    Hello, I need to print automatically from a software I develop. I think I'll use a script for this. I have 2 questions: 1. the command: "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /p /h "C:\TEST\myfile.pdf" works, but it goes on the defau

  • Join the same view using 2 different conditions, getting error ORA-00918

    Hi, I am trying to do a full outer join using the same view with different where conditions. Sample code below. I am getting the error "ORA-00918: column ambiguously defined". I have used as much alias as I can on the select statements but it gives m