Java script is not working in custom tabular form

hai all,
i have changed my built in tabular form to custom tabular form.my java script is coding working fine in built in tabular form . But in my custom tabular form java script is not working ,since it is created as standard report(Display As).
pls help me.
with thanks and regards
sivakumar.G

Is the appostrophe function test(pthis) *'* present in your javascript code...
If not can you post the same in apex.oracle.com and give the credential so that I can the why its not wroking
Regards,
Shijesh

Similar Messages

  • Mozilla is lying when it says Java Script is unnecessary for the avcrage user.Java script is not working in Firefox 7.01

    I want to roll back to an earlier version Firefox that works with Java Script how can I do this. Where I can download an earlier version? You know what the problems are. I am NOT going to list them. Own up to your errors. You made an incorrect conscious decision to break with Java compatibility.

    Mozilla is not lying about average users, but it shows contempt for experienced users, or those that want to be able to get the more out of their browser, or use it for work or school.
    Java and JavaScript are not the same thing. I trust you are referring to JavaScript problems and a lot of collateral damage associated with the mess.
    # Prohibition on Webpages being able to resize or move windows with JavaScript
    # Prohibition on Users being able to move or resize windows with JavaScript
    # Ignoring the fact that there were already user controls in Tools > Options > Content > Javascript > Advanced
    # Making JavaScript inoperable from Location bar as a command, or in a keyword shortcut that involves moving resizing windows
    # Destroying use of AwesomeBar search, Bookmark searching for bookmarks containing JavaScript, making internal searches very unreliable
    Firefox 8 comes out November the 8th and it nor later versions show any reversal of this mess.
    Firefox 3.6.* should remain safe to use for some time, as corporate users will not put up with nonsense when they support thousands of users.
    For those that really need an older version of Firefox [ftp://ftp.mozilla.org/pub/firefox/releases releases] (all releases, including 4.0.1 and 5.0) or with the latest of [http://www.mozilla.com/en-US/firefox/all-older.html Firefox 3]. Mac OSX 10.4 users can't upgrade to 4.0.1
    When you reinstall a different version, at the end of the install, don't let the install start Firefox for you, rather exit, and then start Firefox in the normal manner to avoid inadvertently creating and using a new profile without your bookmarks, etc.
    What would be better would be to use multiple versions / profiles at the same time, which is certainly beyond average users, particularly when Mozilla has historically and purposely made such things difficult. But if interested see [http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox Using multiple profiles - Firefox - MozillaZine Knowledge Base]

  • Java script is not working while coming back to the page.

    Hi Experts,
    I am working in jdev 11.1.1.3.0 with ADF BC.
    I am callling javascript in my jsff, while this javascrip is invoking file download method. this java script i am inovking from another button action, because in some case i need to invoke popup and some case i need to invoke file download for this i have taken one button in that button i am invoking these 2 based on some condition. everything is working fine except if i move another jsff and come back to this jsff then the file download is not happening.
    can any one tell me what is the issue here.
    java script:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    java bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    Here my bean is in backing bean scope.
    can any one help what may be the issue here. or if you can tell me how to call file download method from backing that can be great help full to me.
    Edited by: user5802014 on Aug 27, 2010 1:52 PM

    Hi:
    So it's the "erks.addScript(context, "customHandler();");" may not work properly the next time coming back from another jsff.
    And very likely the statement of: var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1") in your javascript command gave you error. Are you sure that "pt1:pt_resion0:1:cb1" is valid all the time no matter how the page is rendered?
    Please mark my answer as 'Helpful' if it helps.
    Thanks,
    Alex

  • Java Script Code not working properly for visios in sharepoint 2013

    Hi all ,
                 I have few visios and I am using the visio web part to display and to redirect from one visio to other visio I am using the java script code through content editor web part . 
    In share point 2010 it's working fine , I was able to redirect to all the visios and code is working fine .
    In share point 2013 its not the same , Its not working properly . only for the first time the code is working fine . once it goes to next visio the code stops working . 
    For example if i click in visio A it gets redirect to Visio B and its stops working , it wont allow to do any other steps . 
    I have checked with the URL its correct , I am not able to find any error also .
    Indresh

    This will be likely caused by the Minimal Download Strategy not registering the Javascript on the page reload. You can turn off the MDS feature to test this.
    You can either turn off MDS in your site, or register your Javascript functions with MDS to ensure they are called. To do this, you'll need all of your code to be wrapped in a javascript file (Embed this on the page using a <script> tag and
    inside that file in a function, which you then register with MDS as follows (I usually do this in the first line of the javascript file):-
    RegisterModuleInit("/SiteAssets/YourJavaScriptFile.js", NameOfYourFunction);
    Regards
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • Java script is not working in Chrome

    The code below works fine on IE and FF but not on Google Chrome.
    Please can someone help me to find out the mistake?.    Thanks In Advance.
    Flex Code:
    Public function init():void
    ExternalInterface.addCallback("getCloseConfirmMessage", closeConfirmMessage);
    ExternalInterface.call("setUpBeforeUnload",FlexGlobals.topLevelApplication.id);
    Public function closeConfirmMessage():void
          //Code Here
    Java Script :
      <script language="javascript" type="text/javascript">
                    var fxControl;
                    function confirmClose()
    alert("Please click OK to end the session");
    fxControl.getCloseConfirmMessage();                  
                    function setUpBeforeUnload( appName )
                                    fxControl = document[ appName ] || window[ appName ];                       
                                  window.onbeforeunload = confirmClose;
    </script>

    Is the appostrophe function test(pthis) *'* present in your javascript code...
    If not can you post the same in apex.oracle.com and give the credential so that I can the why its not wroking
    Regards,
    Shijesh

  • Java script will not work after creating new page

    I am using dreamweaver cs3 and have a java script to rotate a banner in a template.  This script has worked fine in the past when I created pages in Dreamwever.  Now the  script works fine only when I test it in a template but when I try to upload to my ISP the script will no longer work.  At first I thought it was the ISP made changes but the person who sits next to me running the same version of Dreamweaver can create a page and the java works.  The java is placed in a template, tested by viewing in a brower and it works, however once I try to create a new page using the template the scriipt will not work.  To get around this I have the person sitting next to me save my template and then I can create pages.  Also if I save the template with my pc and it updates the pages created by the template the java will no longer work.
    This is very frustrating as I cannot create or modify my template on this pc.  What would prevent this from working?

    OK - now we are on to something ..... the script on the template only contains:
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    However when I create a new page from the template with this javascript in it the code changes to:
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    MM_swapImage('rotator', '', imgs[counter++]imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);

  • Add row button is not working in manual tabular form

    Hi,
    I have created a tabular form by using collections. In the same page there is a wizard tabular form also.
    Here my problem is whenever i giving request to the add row button its showing nothing. there is no any new row got added.
    IF :REQUEST ='ADD'
    THEN
    apex_collection.add_member(
    p_collection_name => l_collection_name
    END IF;
    END;
    Thanks.

    Hi,
    Thanks for ur reply.
    My problem got solved after deleting the tabular form wizard from the page then add row button is working.
    But i think its not the solution.
    Thanks.

  • Save changes button not working in my tabular form

    Hello,
    I have created a tabular form with all the button like cancel,delete,save,add row and their processes by default
    when i tried to run the report, the save is not working (whenever i tried to make some changes and update the form) like it giving me an error saying that
    " Error in mru internal routine: ORA-20001: no data found in tabular form "
    I looked at the process MRU, it is OKAY.
    I tried to delete it(the MRU process) and created a new MRU process then also the SAVE button is not working, like it gives the same error.
    " Error in mru internal routine: ORA-20001: no data found in tabular form "
    Can anyone help me out with this issue...!
    what might be the problem?

    There could be two reasons for this error:
    1. in your MRU Process, you didn't type the proper primary key column name
    2. your tabular form is missing the referenced collumn
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Add row not working when creating tabular form manually

    Hi friends,
    I am trying to create a manual tabular form( with the help of Denes's example). When adding a new row by clicking
    the add button new row is added and i can enter data in that row. This works fine when there is only one page.
    Now i have 30 rows in 2 pages. Now when i tried to add a new row by pressing the add button nothing is happening.
    In my add button i have given redirect to the same page and request as ADD and the report query is as below.
    SELECT apex_item.checkbox (1,
                               EQUIPMENT_ID,
                               'onclick="highlight_row(this,' || ROWNUM || ')"',
                               NULL,
                               'f01_' || LPAD (ROWNUM, 4, '0')
                              )Tick,
       EQUIPMENT_ID,
              apex_item.hidden (2,EQUIPMENT_ID)
    ||apex_item.text (3,
                              EQUIPMENT_ROLE,
                              80,
                              100,
                              'style="width:170px"',
                              'f03_' || LPAD (ROWNUM, 4, '0')
                             )|| apex_item.hidden (4, wwv_flow_item.md5(EQUIPMENT_ID,EQUIPMENT_ROLE,EQUIPMENT_VERSION,                       
                             SNMP_PORT,RO_COMMUNITY_STRING ,RW_COMMUNITY_STRING,COMMISIONED_STATE,CUSTOMER_ID,
                             SITE_ID
                             ))EQUIPMENT_ROLE,
    apex_item.text (5,
                             EQUIPMENT_VERSION,
                              80,
                              100,
                              'style="width:170px"',
                              'f05_' || LPAD (ROWNUM, 4, '0')
                             ) EQUIPMENT_VERSION,
    apex_item.text (6,
                             SNMP_PORT,
                              80,
                              100,
                              'style="width:170px"',
                              'f06_' || LPAD (ROWNUM, 4, '0')
                             ) SNMP_PORT,
    apex_item.text (7,
                             RO_COMMUNITY_STRING,
                              80,
                              100,
                              'style="width:170px"',
                              'f07_' || LPAD (ROWNUM, 4, '0')
                             ) RO_COMMUNITY_STRING,
    apex_item.text (8,
                             RW_COMMUNITY_STRING,
                              80,
                              100,
                              'style="width:170px" ',
                              'f08_' || LPAD (ROWNUM, 4, '0')
                             ) RW_COMMUNITY_STRING,
    apex_item.text (9,
                             COMMISIONED_STATE,
                              80,
                              100,
                              'style="width:170px" ',
                              'f09_' || LPAD (ROWNUM, 4, '0')
                             ) COMMISIONED_STATE,
    apex_item.text (10,
                             CUSTOMER_ID,
                              80,
                              100,
                              'style="width:170px" ',
                              'f10_' || LPAD (ROWNUM, 4, '0')
                             ) CUSTOMER_ID,
    apex_item.text (11,
                             SITE_ID,
                              80,
                              100,
                              'style="width:170px"',
                              'f11_' || LPAD (ROWNUM, 4, '0')
                             ) SITE_ID
          FROM EQUIPMENTS_FEAT_MVIEW
          UNION ALL
          SELECT     apex_item.checkbox
                                    (1,
                                     NULL,
                                     'onclick="highlight_row(this,' || ROWNUM || ')"',
                                     NULL,
                                     'f1_' || LPAD (9900 + LEVEL, 4, '0')
                                    ) delete_checkbox,
                     NULL,
                        apex_item.hidden (2, NULL)
                     ||apex_item.text (3,
                                        NULL,
                                        80,
                                        100,
                                        'style="width:170px"',
                                        'f3_' || LPAD (9900 + LEVEL, 4, '0')
                                 ) || apex_item.hidden (4, NULL)EQUIPMENT_ROLE ,
                      apex_item.text (5,
                                 NULL,
                                 80,
                                 100,
                                 'style="width:170px"',
                                 'f05_' || LPAD (9900 + LEVEL, 4, '0')
                                 )EQUIPMENT_VERSION,
                      apex_item.text (6,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f06_' || LPAD (9900 + LEVEL, 4, '0')
                                 )SNMP_PORT,
                     apex_item.text (7,
                                NULL,
                               80,
                                100,
                                'style="width:170px"',
                               'f07_' || LPAD (9900 + LEVEL, 4, '0')
                                 ) RO_COMMUNITY_STRING,
                      apex_item.text (8,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f08_' || LPAD (9900 + LEVEL, 4, '0')
                                 )RW_COMMUNITY_STRING,
                     apex_item.text (9,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f09_' || LPAD (9900 + LEVEL, 4, '0')
                                 )COMMISIONED_STATE,
                       apex_item.text (10,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f10_' || LPAD (9900 + LEVEL, 4, '0')
                                 )CUSTOMER_ID,         
                     apex_item.text (11,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f11_' || LPAD (9900 + LEVEL, 4, '0')
                                 )SITE_ID
                         FROM DUAL
                        WHERE :request = 'ADD'
    CONNECT BY LEVEL <= 1How can i solve this problem . Please help,
    Thanks,
    Jeev

    Hi,
    The blank row that you get from your second select statement would appear at the end of the report. Put that statement first and it should be at the top of the first page
    Andy

  • Since upgrading to Safari 5.1 some Java scripts are not working, how can I fix this?

    Many thanks for any assistance

    If you did not create this swf yourself then you won't be able to do what I am suggesting.  If you did, then open the fla in Flash and go into the Publish Settings and select the option to publish an html file as an output.  That will create an html page that embeds the Flash file.  Test that file in your browser and see if it plays properly.  IF so, then copy that code in place of whatever Dreamweaver did to embed the Flash.
    Dreamweaver is not a reliable tool for embedding Flash content... why it does not do it the same way Flash does it is anyone's guess.

  • Java script does not seem to be working with Firefox 3.6

    I am using Firefox 3.6, and recently installed MAC OS 10.6.5. I had a problem today working on a website and java script would not work with this browser. I was able to work on Safari though...

    To fix this you will need to delete your firefox profile directory to get the new firefox 3.6.13 to work with the java plugin, its a good idea to run an update for java as well before hand. Or you can totally get rid of firefox and the profile directory and load an older version, just turn off automatic firefox updates.

  • Java Script doesn't work on Firefox 8?

    I have noticed that (some) Java Script does not work on Firefox 8.0. Is there a correction for this?

    Yep, go back to what works, appears to be the only real solution. But then you'd hardly be able to use Firefox as nothing is going to get fixed there only get broken.
    What does not work is
    # move, and resize of main window not allowed
    # that include wiping out a lot of keyword shortcuts that do that
    # various additional collateral damage
    The solutions (work arounds) that I can best offer are clumsy but can be found in
    * http://kb.mozillazine.org/Resizing_oversize_window#JavaScript_no_longer_allowed_to_resize_windows

  • Reverse Engineering is not working for custom

    hi odi guru's
    i installled Hyperion 11.1.2.2 and ODI 11.1.1 . while doing reverse engineering is not working for custom purpose.
    Iam working with Hyperion Financial management with odi. created dataserver and physical schema and logical schema
    and imported RKM HYperion Financial Management Knowledge module.
    is it required for hyperion latest patches to connect with odi. Please let me know . urgent?
    Thanks in adavnce

    hi
    is it required for hyperion patches to connect with odi?
    iam getting following error.
    ODI-1217: Session HFM_Model (5051) fails with return code 7000.
    ODI-1226: Step HFM_Model fails after 1 attempt(s).
    ODI-1229: An error occurred while performing a Reverse operation on model code HFM_MODEL.
    Caused By: org.apache.bsf.BSFException: exception from Jython:
    Traceback (most recent call last):
    File "<string>", line 38, in <module>
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver.
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)
         at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
         at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: Traceback (most recent call last):
    File "<string>", line 38, in <module>
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver.
         at org.python.core.PyException.fillInStackTrace(PyException.java:70)
         at java.lang.Throwable.<init>(Throwable.java:181)
         at java.lang.Exception.<init>(Exception.java:29)
         at java.lang.RuntimeException.<init>(RuntimeException.java:32)
         at org.python.core.PyException.<init>(PyException.java:46)
         at org.python.core.PyException.<init>(PyException.java:43)
         at org.python.core.Py.JavaError(Py.java:455)
         at org.python.core.Py.JavaError(Py.java:448)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)
         at org.python.core.PyObject.__call__(PyObject.java:355)
         at org.python.core.PyMethod.__call__(PyMethod.java:215)
         at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
         at org.python.core.PyMethod.__call__(PyMethod.java:206)
         at org.python.core.PyObject.__call__(PyObject.java:381)
         at org.python.core.PyObject.__call__(PyObject.java:385)
         at org.python.pycode._pyx1.f$0(<string>:38)
         at org.python.pycode._pyx1.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java:165)
         at org.python.core.PyCode.call(PyCode.java:18)
         at org.python.core.Py.runCode(Py.java:1204)
         at org.python.core.Py.exec(Py.java:1248)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         ... 19 more
    Caused by: com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver.
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
         ... 33 more
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: Error occurred while loading driver.
         at com.hyperion.odi.hfm.wrapper.HFMServer.<init>(HFMServer.java:29)
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:51)
         ... 40 more
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: no HFMDriver in java.library.path
         at com.hyperion.odi.hfm.wrapper.HFMDriverJNI.getDriver(HFMDriverJNI.java:23)
         at com.hyperion.odi.hfm.wrapper.HFMServer.<init>(HFMServer.java:26)
         ... 41 more
    please help me , thanks in advacne

  • XML create script is not working in Photoshop.

    Hi All
    Below i have mentioned script is not working. Kindly check and advice. Please do this needful
    #target photoshop;
    var createDefaultXML, createPresetChild, defaultXML, initDDL, presetFile, presetNamesArray, readXML, resPath, win, windowResource, writeXML, xmlData,
      __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
    windowResource = "dialog {  \
        orientation: 'column', \
        alignChildren: ['fill', 'top'],  \
        size:[410, 210], \
        text: 'DropDownList Demo - www.davidebarranca.com',  \
        margins:15, \
        controlsPanel: Panel { \
            orientation: 'column', \
            alignChildren:'right', \
            margins:15, \
            text: 'Controls', \
            controlsGroup: Group {  \
                orientation: 'row', \
                alignChildren:'center', \
                st: StaticText { text: 'Amount:' }, \
                mySlider: Slider { minvalue:0, maxvalue:500, value:300, size:[220,20] }, \
                myText: EditText { text:'300', characters:5, justify:'left'} \
        presetsPanel: Panel { \
            orientation: 'row', \
            alignChildren: 'center', \
            text: 'Presets', \
            margins: 14, \
            presetList: DropDownList {preferredSize: [163,20] }, \
            saveNewPreset: Button { text: 'New', preferredSize: [44,24]}, \
            deletePreset: Button { text: 'Remove', preferredSize: [60,24]}, \
            resetPresets: Button { text: 'Reset', preferredSize: [50,24]} \
        buttonsGroup: Group{\
            alignChildren: 'bottom',\
            cancelButton: Button { text: 'Cancel', properties:{name:'cancel'},size: [60,24], alignment:['right', 'center'] }, \
            applyButton: Button { text: 'Apply', properties:{name:'apply'}, size: [100,24], alignment:['right', 'center'] }, \
    win = new Window(windowResource);
    xmlData = null;
    presetNamesArray = [];
    resPath = File($.fileName).parent;
    presetFile = new File("" + resPath + "/presets.xml");
    defaultXML = <presets>
            <preset default="true">
                <name>select...</name>
                <value></value>
            </preset>
            <preset default="true">
                <name>Default value</name>
                <value>100</value>
            </preset>
            <preset default="true">
                <name>Low value</name>
                <value>10</value>
            </preset>
            <preset default="true">
                <name>High value</name>
                <value>400</value>
            </preset>
        </presets>;
    writeXML = function(xml, file) {
      if (file == null) {
        file = presetFile;
      try {
        file.open("w");
        file.write(xml);
        file.close();
      } catch (e) {
        alert("" + e.message + "\nThere are problems writing the XML file!");
      return true;
    readXML = function(file) {
      var content;
      if (file == null) {
        file = presetFile;
      try {
        file.open('r');
        content = file.read();
        file.close();
        return new XML(content);
      } catch (e) {
        alert("" + e.message + "\nThere are problems reading the XML file!");
      return true;
    createDefaultXML = function() {
      if (!presetFile.exists) {
        writeXML(defaultXML);
        void 0;
      } else {
        presetFile.remove();
        createDefaultXML();
      return true;
    createPresetChild = function(name, value) {
      var child;
      return child = <preset default="false">
                    <name>{name}</name>
                    <value>{value}</value>
                </preset>;
    initDDL = function() {
      var i, nameListLength;
      if (!presetFile.exists) {
        createDefaultXML();
        initDDL();
      xmlData = readXML();
      if (win.presetsPanel.presetList.items.length !== 0) {
        win.presetsPanel.presetList.removeAll();
      nameListLength = xmlData.preset.name.length();
      presetNamesArray.length = 0;
      i = 0;
      while (i < nameListLength) {
        presetNamesArray.push(xmlData.preset.name[i].toString());
        win.presetsPanel.presetList.add("item", xmlData.preset.name[i]);
        i++;
      win.presetsPanel.presetList.selection = win.presetsPanel.presetList.items[0];
      return true;
    win.controlsPanel.controlsGroup.myText.onChange = function() {
      return this.parent.mySlider.value = Number(this.text);
    win.controlsPanel.controlsGroup.mySlider.onChange = function() {
      return this.parent.myText.text = Math.ceil(this.value);
    win.presetsPanel.presetList.onChange = function() {
      if (this.selection !== null && this.selection.index !== 0) {
        win.controlsPanel.controlsGroup.myText.text = xmlData.preset[this.selection.index].value;
        win.controlsPanel.controlsGroup.mySlider.value = Number(xmlData.preset[this.selection.index].value);
      return true;
    win.presetsPanel.resetPresets.onClick = function() {
      if (confirm("Warning\nAre you sure you want to reset the Preset list?", true)) {
        createDefaultXML();
        return initDDL();
    win.presetsPanel.saveNewPreset.onClick = function() {
      var child, presetName;
      presetName = prompt("Give your preset a name!\nYou'll find it in the preset list.", "User Preset", "Save new Preset");
      if (presetName == null) {
        return;
      if (__indexOf.call(presetNamesArray, presetName) >= 0) {
        alert("Duplicate name!\nPlease find another one.");
        win.presetsPanel.saveNewPreset.onClick.call();
      child = createPresetChild(presetName, win.controlsPanel.controlsGroup.myText.text);
      xmlData.appendChild(child);
      writeXML(xmlData);
      initDDL();
      return win.presetsPanel.presetList.selection = win.presetsPanel.presetList.items[win.presetsPanel.presetList.items.length - 1];
    win.presetsPanel.deletePreset.onClick = function() {
      if (xmlData.preset[win.presetsPanel.presetList.selection.index][email protected]() === "true") {
        alert("Can't delete \"" + xmlData.preset[win.presetsPanel.presetList.selection.index].name + "\"\nIt's part of the default set of Presets");
        return;
      if (confirm("Are you sure you want to delete \"" + xmlData.preset[win.presetsPanel.presetList.selection.index].name + "\" preset?\nYou can't undo this.")) {
        delete xmlData.preset[win.presetsPanel.presetList.selection.index];
      writeXML(xmlData);
      return initDDL();
    initDDL();
    win.show();

    You should use the scripting forum. I only hack at Photoshop scripting when I need to.  What I put together is usually made from code I find on the web and modify to do what I want to do. When it come down to it I really don't know javascript.  Your javascript knowledge is way beyond mine.  To tell the truth I don'e even understand the syntax of you first statment after target Photoshop.
    I have a programming background but most of mine was was in design, debugging, and developing programming development tools.  I retired back in 2002.   I never got into Object orientated programming though it was in full swing as was C programming along with java.  Microsoft had given up on its object orientate desktop OS2 system sidetracking IBM with it.
    I did not look closely at your code.  That something you should do. You know more then I do.....
    In the scripting forum you will get better help then I can give you.   Many of the better scriptwriter seem to have left there becase of  frustration with Adobe support. However there are some that still visit there regularly.
    You may want to look into Xtools there open source and the author still visits the forum from time to time. I have use some of his scripts but have never gotten into his library I'm retired I only play a little to keep some brain function. ps-scripts - Browse /xtools at SourceForge.net

  • Custom tabular form for multi-row not saving data

    Ok, before anyone asks, yes, I did read the how-to:-)
    I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
    It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
    However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
    I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
    SQL to generate the tablular form...
    SELECT x.sak_release_db
    , x.sak_object
    , x.sak_release
    , x.sak_participant
    , x.sak_csr
    FROM
    (SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
    , htmldb_item.popupkey_from_query(2, sak_object,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,sak_release) sak_release
    , htmldb_item.popupkey_from_query(5, sak_participant,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, sak_csr,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM release_db_xref
    UNION ALL
    SELECT htmldb_item.hidden(1,NULL) sak_release_db
    , htmldb_item.popupkey_from_query(2, NULL,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,NULL) sak_release
    , htmldb_item.popupkey_from_query(5, NULL,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, NULL,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM dual) x
    Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
    begin
    :P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
    :P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
    :P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
    end;
    Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
    -- Update the RELEASE_DB_XREF table
    FOR i IN 1..htmldb_application.g_f01.count
    LOOP
    IF htmldb_application.g_f01(i) IS NOT NULL THEN
    UPDATE release_db_xref
    SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    , sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    , sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
    WHERE sak_release_db = 22;
    ELSE
    IF htmldb_application.g_f02(i) IS NOT NULL THEN
    INSERT INTO release_db_xref
    (sak_object
    ,sak_release
    ,sak_participant
    ,sak_csr)
    VALUES
    (replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    ,htmldb_application.g_f04(i)
    ,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    ,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
    END IF;
    END IF;
    END LOOP;

    Florian,
    Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
    When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
    Some general information about working with checkboxes in tabuar forms can be found here:
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
    Hope this helps,
    Marc

Maybe you are looking for

  • For when a new firmware for normal N73?

    I know there is a new firmware for N73ME, my question is, anybody knows when will be release a new firmware for normal N73, with same improvements like N73ME (or more). Message Edited by naf1970 on 16-Jan-2008 07:22 PM Nokia N8 / N9 / Lumia 920 White

  • My website is broken in DWCC.

    It was fine in February, but now that I want to make some changes and add to it, it opens with blue word links instead of the navigation system I originally put in. How do I get my website back to working order? The CSS file is attached properly in t

  • Is the Mac Mini for me ? (used for basic operation and recording)

    I have always owned a PC and ready to make the change to Apple, since we have iPhones and iPads.  Here's a list of what we would use the computer for: - basic Microsoft Office (Word, Excel, etc) - browsing - storing files (ITunes movies and music) -

  • Iphone vimeo upload fails

    I've been attempting to upload a 30 sec video done in iMove for iPhone 5, and I am unable to upload it to my vimeo account. I have the app installed, and I am logged in. I'm using Wi-Fi and nothing. I have no issues uploading to Facebook or youtube.

  • How to put long text by idoc into FB01?

    Hi, I am using Idoc ACC_DOCUMNENT to create FB01 transaction but there is place to put the long text for the item. Do you know how to update the long text using an Idoc? please do Not reply "try using function SAVE_TEXT". Thanks guys...