Running scripts based on the presence of parents subform

I've been developing a dynamic form wjich i've been working on for 7 weeks.
I've build mandatory and validation checks for the entire form. Its a for which kan collapse based on user actions.
As output this form gan generate more than 25 different versions.
Now my problem:
I'd like to run javascripts (mandatory checks) before the form is being saved by the user. Some fields and their subforms are not visible because the user which is filling out the form made choices which don't require those fields/sections of the form to be filled.
I scripted a function which checks all fields where i placed mandatory check.
But i want the function to only check the fields for mandatory if the parent subform is visible. Is this possible?
Now the user gets errors because not all required fields were filled out. But they actually are filled OK only the hidden sections have some mandatory fields which are not visible and therefore are not filled either.
Thx in advance!

hi rob, if i understood your problem, this could be the solution:
somewhere you have your javascriptt(mandatory checks). you could go through the subforms and check whether they are visible or hidden:
if(mySubform[i].presence==visible){
(mandatory checks);
hope this will help.

Similar Messages

  • Can we run script logic at the time of preparing reports.

    Helo Everybody!
    I am new to SAP BPC.
    Can we run script logic at the time of preparing reports.
    Thanks & Regards,
    Satish.

    If you mean, "Can we run script logic at the time of preparing reports" is equivalent to entering data into the report and sending it to the database, then yes, you may run logic as Marcel indicates.  Defualt logic is ALWAYS run for ANY and EVERY set of data that is sent via an input template from the field.  You may also run logic when posting a jOURNAL entry as well.  But be careful....if default logic attempts to perform to MANY or COMPLEX calculations, the time it takes to complete the process may not be in expectations with the users plans.  There is a fine design balance required when planning to run logic at the time of input, as opposed to running in a package or at specific times during the day.
    Hope this helps.

  • UPDATING child table based on the mods to parent record

    I have a one to many relationship between Table A and Table B.
    I have a field in both of my tables that tracks the status of the record in each table. ie: submitted, inprogress, done.
    When records are created in Table A and B, status is set to SUBMITTED. When the application is being reviewed, the status in parent table is changed to INPROGRESS. As soon as the status in Table A changes to INPROGRESS for the parent record, i also want the status in Table B to change to INPROGRESS for the corresponding child records.
    How can I do this? Triggers is one of the solns, but is there something that i can do with the PROCESS option available on the parent form?
    Any help is very much appreciated.

    Hi,
    Firstly, as Oracle is a relational database, you shouldn't need to have the setting on a child record where it will always be the same as the parent record.
    Secondly, a trigger is probably a better place to make the update, if you need to do this, as this would also handle updates outside of Apex.
    Finally, yes you can create a process to do this if you want. You can create an unconditional process (that is, it runs whenever the page is submitted) and does something like:
    UPDATE TABLEB
    SET STATUS = :P1_STATUS
    WHERE FK_ID = :P1_PK_ID
    AND STATUS <> :P1_STATUSAndy

  • Ical alert to  run script disappears from the event

    A few seconds after I set an  alert for an event  to run a script, the Run Script designation disappears and defaults to  alert Message. I cannot make the Run Script designation stick. So, when the alert triggers, no script is run. 

    Hi kimal,
    Are you syncing the calendars? Run Script alarms only work on local calendars, those under "On My Mac" in iCal.
    Best wishes
    John M

  • SCOM 2012 - Is there a way to create a class/target/group based on the presence of a folder?

    I need to create monitor(s) for an application, but the application services are different on all the servers.  Usually I would find a application service that is common among all the servers I want to monitor to create the target,
    but this does not exist.  There are no common services for this application. However, every server does have a common folder in the Program Files on the C: drive (i.e. "xyz" folder exist on every server for the application). 
    Is there a way to create a target based on a folder in the Programs Folder?

    Please refer to the following, which is quite exactly fit your requirement.
    http://msdn.microsoft.com/en-us/library/bb437613.aspx
    Roger

  • Determining the presence of an object based on the presence of multiple other objects.

    I have a form in which there are many subforms that become visible or hidden based on check boxes. I also built a report within a subform that is populated based on whether or not certain boxes are checked. My problem is that when everything in the report is hidden I want a text box to become visible and I'm not sure how to go about that. Basically, if all of the boxes are checked I don't want just a blank report, I want it to say something like "NO DEFICIENCIES NOTED"
    Thanks in advance,
    Bryant Coon

    Not sure I follow ..can you post the form to [email protected] so I can see it? I am sure what you are trying to do can be done it is just a matter of getting the right context. Also include a description of how to reproduce the problem.

  • Has the behavior of 'run script' changed in Snow Leopard?

    These work fine:
    tell application "Safari"
    return URL of front document
    end tell
    tell application "Safari"
    set longURL to URL of front document
    return longURL
    end tell
    This does not:
    set getFrontmostURLCommand to "URL of front document"
    tell application "Safari"
    set longURL to run script getFrontmostURLCommand
    end tell
    return longURL
    Why? It looks like a script interpretation error but I can't figure out what's wrong.
    The error returned is:
    error "Safari got an error: Can’t get URL of document 1." number -1728 from "URL of front document"

    I see. Is there a way to make the application variable? I'm writing a function because getFrontmostURLCommand works with a couple of different browsers and I want it to be run conditionally based on the user's browser. Something like this:
    set defaultBrowser to GetDefaultWebBrowser()
    on GetDefaultWebBrowser()
    set _scpt to "export VERSIONERPERL_PREFER_32BIT=yes; " & -
    "perl -MMac::InternetConfig -le " & -
    "'print +(GetICHelper \"http\")[1]'"
    return do shell script _scpt
    end GetDefaultWebBrowser
    on defaultGetFrontmostURLCommand(defaultBrowserApplication)
    tell application defaultBrowserApplication to set longURL to URL of front document
    end defaultGetFrontmostURLCommand
    on caminoGetFrontmostURLCommand()
    tell application "Camino" to set longURL to URL of current tab of browser window 1
    end caminoGetFrontmostURLCommand
    if defaultBrowser is in {"Safari", "WebKit", "Opera"} then
    defaultGetFrontmostURLCommand(defaultBrowser)
    else if defaultBrowser is "Camino" then
    caminoGetFrontmostURLCommand()
    end if
    set the clipboard to longURL

  • Find out the process id from a background running script

    Hello all:
    I created a java service and use a shell script to drive it from background. In the script, I have code like this:
    javac myApp & I want to find out the pid for this process. After googling for a while I came up with this:
    echo $$ > test.pid However, I notice two things:
    1. This only works when my script runs frontground, meaning only when I remove "&";
    2. The pid file, test.pid, won't be created until the running script exits, after I clicked ctrl+c, for instance.
    Now the question is, how can I find out the pid of a background running script from within the script itself?
    I don't want to use code such as ps -ef | grep .... because of the possible name conflict.
    Thanks,
    Johnny

    Yes, but as far as I understand this can happen to any background process, for instance, when the user logs out while a background process is still running.
    But using the "$!" variable as you've shown is the "correct" solution.
    This is probably what the OP is looking for:
    javac myApp & echo $! > test.pidFrom the bash man page:
    $ Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the current shell, not the subshell.
    ! Expands to the process ID of the most recently executed background (asynchronous) command.

  • Running reports stored in the database

    Hi guys,
    Is it possible to have Reports 6i produce reports that are
    stored in the database? Looking at the documentation, it would
    appear the report definition files (RDF) must be stored in the
    filesystem. I don't really want to be handing out filesystem
    access (managing and it) to people - is there a way around this?
    Thanks,
    denty.

    user5780461 wrote:
    Hi,
    Would anyone have any recommendations regrading running reports based on the data stored in an oracle database. We will soon go live with a project using an oracle DB. We do not wish to run reports directly from the production DB as it will impact performance. Have you actually measured the impact? If not, you are just making assumptions that -- lacking any other informatin -- appear to be invalid.
    Is there any recommended method/architecture for reporting suggested by oracle for this type of scenario?
    You make it sound like some unusual scenario. What you've described so far (running reports against an OLTP database) is just bread and butter operations for Oracle.
    One idea is too runs some scripts that will write the data to another database and from there we will runs out reporting queries. Are there any other potential solutions?
    And how does reading the data to insert into some other database cause less contention than reading data for a report?
    >
    Many thanks,
    Ro

  • How to do running aggr based on prompt value and how to or prompt?

    Hello guys
    I have some requirements that I have a report that has measures and Months and Date..
    1. I have to create dashboard prompts on months and dates in such way that users can select either that want to see monthly sales or daily sales.. So the two prompts should be "or" relationship that point to the same report. If user select month from month prompt, the report will return data at monthly level; if select day on day prompt, it should return data at day level..
    2. Doing running sum based on the dates selected from the prompts.
    If I select day prompt as between "Feb 12th 2009" and "March 1st 2009", the report should return sales data that is the sum of all sales between "Feb 12th 2009" and "March 1st 2009".. If user select month prompt as between "Nov 2008" and "Feb 2009", the report should show the sum of all the sales from "Nov 2008" and "Feb 2009".
    How would I achieve both scenarios?
    Any pointer will be greatly appreciated..

    Hi.
    Maybe you want to have dynamic group by in Answers report by choosing group by part from a dashboard prompt.
    So, assume this example in which you have only one dashboard prompt that shows Day or Month character data.
    Make dashboard prompt:
    edit column formula: 1
    control: drop-down list
    show:
    SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Day'* end FROM "Normal model"
    union all
    SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Month'* end FROM "Normal model"
    default to - specified value: Day
    set variable - presentation variable: pv_dyn_group_by
    label: Group by
    Now make report in Answers and we'll use dynamic column for group by depends on our presentation variable (Day or Month):
    /* column 1 */
    label:
    I don't know how to dynamicly change column label (Month or Day) so I put just label Dynamic group by.
    column formula:
    case when '@{pv_dyn_group_by}' ='Day'
    then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy')
    else TIMES.CALENDAR_MONTH_DESC
    end
    /* column 2 */
    AMOUNT_SOLD
    /* column 3 */
    RSUM(AMOUNT_SOLD)
    Test:
    In both cases we get the same result of RSUM in the end. First we group by a TIMES.TIME_ID if we choose 'Day', second by a TIMES.CALENDAR_MONTH_DESC if we choose 'Month'.
    Is that you want to?
    So if you want to see month or day values to choose it (between part) you must make second prompt with something like this in show SQL results:
    SELECT case when '@{pv_dyn_group_by}{Month}'='Month' then TIMES.CALENDAR_MONTH_DESC end || case when '@{pv_dyn_group_by}{Day}'='Day' then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy') end FROM "Normal model" order by 1
    The name of the second prompt is: '@{pv_filter}{Month}'
    That will display 'Month' or 'Day'. I don't know better solution :-)
    Similar is to make a between 2 prompts.
    After then you must modify filter in Answers to get OR (between dates ot between months)
    Regards,
    Goran Ocko
    http://108obiee.blogspot.com/

  • Find the SAP Script name for the Output type RD00 and Appli V3

    Hi Gurus,
    My requirement was to copy the Std SAP Script for the output type RD00 and application name V3 and to do some modification.
    Please any one suggest me how to find the Std SAP script based on the above Output type and Appl ?
    Regards
    paul

    Hi,
    The script Name is LB_BIL_INVOICE
    You can find byNACE>V3>Output Types>RD00-->Processing Routines
    In thje output type Press Change button and select New entries.
    Regards
    Sandipan
    Edited by: Sandipan Ghosh on Mar 31, 2008 12:06 PM

  • Running scripts in different schema

    Assume you have a workspace user DEMO and parsing schema TEST and PROD.
    I create from Workshop/utilities/DDL you select schema PROD for getting DDL for tables, Triggers...
    Now you want to run this script against schema PROD (to create the Objects from PROD at TEST). But at Workshop/scripts you see the scripts owned by TEST, but you can't select a schema fur running the script.
    As workaround I edited the script: create table TEST.x instead of create table x, but I got: ORA-01031: insufficient privileges.
    If I go to Workshop/SQL_Commands select the schema TEST and put in the content of the script (create table TEST.x) it works.
    I confused as I create a DDL for y selecting TEST as schema and want run it as "create table PROD.y" - IT WORKS.
    In which context is a script executed ?
    The difference between schema TEST and PROD is that PROD was created with the workspace and TEST was added later (as new created schema).
    It looks like a bug?

    thank you scott, I understand. I assumed/found the "primary" schema (b) as the way as it worked. The default schema (a) I now tested - it works.
    That means per user there is only 1 schema assigned for running scripts (default or the first schema sssigned to workspace.
    But If I have a workspaced with assigned many schemata and some users, having there own default schema but accessing different schemata, there is no way to run a script at a specific schema.
    A workaround could by if a developer can change his default schema, but he can't
    ( I believe thats okay!).
    A developer sometimes has to create, upload,execute scripts ...
    For my example with schemata DEMO, PROD,TEST I hade to create 3 developers and relogin for executing scripts in the 3 different schemata.
    I think there is an enhancement request for having
    a) connect command in a script OR
    b) selecting schema as in object browser
    Thanks - hope you had merry christmas

  • ICal Run Script

    I'm trying to run a script via iCal using an alarm and it doesn't seem to work if the computer has been sleeping for a certain amount of time.
    I have an alarm set at 4:15am - 5:15am. If I set the alarm to "run script" and choose the script, it will return something like the script didn't finish. If change the script up as an application and set the iCal alarm to open file it returns an error "No user interaction allowed."
    Here's the real kicker. If I set the alarm to run within a few minutes or so, it works just fine using either run script or open file, but if the computer has been asleep for a certain amount of time, it flakes out. I tried using the energy saver seting to wake the computer up a minute before the script runs, but that didn't make a difference. I also thought it might be because there was the screen saver was password protected, but I turned that off and that didn't work either.
    Not that this really matters, but the only thing the script is doing is kicking off a FileMaker script that runs an import. So it is very simple and I set a timeout on it just to be sure that wasn't an issue either. The Filemaker script only takes about 2 minutes to complete. Here's the code...
    delay 10
    tell application "FileMaker Pro Advanced"
    activate
    with timeout of 3600 seconds
    open "HardDrive:Users:username:Documents:FileMakerFile.fp7"
    do script "ImportScript"
    end timeout
    end tell
    Does anyone have any ideas on this one? I'm running this on a Quicksilver G4 with OS 10.4.6. iCal is v2.0.3 and applescript is v1.10.6.
    iBook G4    

    I'm having same problem
    Bruce: did you find a solution?

  • Run script "void(0)"  I need help to stop this happening !

    When I am doing online banking with NatWest (UK) exactly that message appears in my progress bar (bottom left of browser window) when I click on the name of any of my three accounts.
    Normally, clicking should expand a submenu listing all recent transactions but for about a week now, it has stopped working. Instead, that's the message I get:
    run script "void(0)"
    The people at the bank say there's no problem and that it works for them.
    So what's the cause of this issue and how can I fix it?
    BTW Javascript is on and I have not recently altered any settings in Safari. I regularly flush out all browser caches.

    I can't seem to access that info, Andy. There is no "Inspect Element" option. There is a "view frame source" option which opens a window containing tons and tons of code. I can't copy/paste the exact code here because it scripts itself here and doesn't display the way I see it (if that makes sense).
    Note: I encounter the exact same issue in Safari, Firefox, and Opera. I am using the latest versions of all 3 browsers.
    The techie guy from NatWest just called me and we were on the phone for about half an hour. He paid for the call.
    We went through various routines with different browsers including a stripped-down version of Firefox with all add-ons disabled. The same problem kept coming up and I emailed him a screen shot of what I'm getting.
    He's completely stumped and has escalated the problem by sending it up to Level 2. They will try to reproduce the issue using a setup identical to mine (10.6.6., Safari 5.0.3).
    Level 2 may then call me again on Monday or Tuesday. Watch this space....

  • ICal / Run Script / Is this even possible?

    Hello.
    I would like to generate an email from an event I create in iCal.
    I have set up my applescript to run with the "run script" option in the alarm section.
    All that works fine. Except for one thing that I am not even sure is possible.
    Say I create an event called "Liz's Birthday".
    Is there a way in the "run script" for me to get via applescript the title of the event? ("Liz's Birthday")
    From everything I have read it seems iCal is "done" with the run script once it is run... and that there is no way to call back to the original event to get information.
    Note: my script is pretty complicated to i know I can send an email reminder, my goal is to create a whole new email that has the title from the even but not the note. (by default ical will put the body of the event in the note. which we do not want).
    thanks.

    Hello.
    I would like to generate an email from an event I create in iCal.
    I have set up my applescript to run with the "run script" option in the alarm section.
    All that works fine. Except for one thing that I am not even sure is possible.
    Say I create an event called "Liz's Birthday".
    Is there a way in the "run script" for me to get via applescript the title of the event? ("Liz's Birthday")
    From everything I have read it seems iCal is "done" with the run script once it is run... and that there is no way to call back to the original event to get information.
    Note: my script is pretty complicated to i know I can send an email reminder, my goal is to create a whole new email that has the title from the even but not the note. (by default ical will put the body of the event in the note. which we do not want).
    thanks.

Maybe you are looking for

  • How to create runnable JAR in Eclipse

    I have a project in Eclipse with many classes. Whenever I try to create a runnable JAR, the JAR file created always contains all the classes of the project, regardless whether they are really used or not. Is it possible to create a runnable JAR in Ec

  • Failed to add rpd in obiee 11g

    i installed obiee11g. it supports oracle11g with character string non-AL32UTF8. IT IS INSTALLED PROPERLY. BUT I AM UNABLE TO GET THE CATALOG IN BROWSER. WHEN I ADD SAMPLEAPP RPD IT IS SHOWING ERRORS. WILL U PLS TELL ME HOW CAN I ADD RPD TO OBIEE11G

  • How to? switch between the following mission control preference "group windows by application" on the fly? OR have both readily available

    Is there any way to switch between the following mission control preference "group windows by application" on the fly?  I would like to turn this feature on and off quickly. OR have both readily available? If osx 10.9 does not support this, does any

  • Installing EPM 11.1.1.3 on Solaris x64

    Hello Gurus, I am not able to install EPM 11.1.1.3 on Solaris x64. I am facing an issue while I execute installTool.sh. It gives me an error Cannot execute <filename> Could anyone please help. What are the steps that I need to keep in mind before doi

  • Notes is not syncing

    anyone know why Notes would not sync between 2 macs both online, both on iCloud, both designating Notes as a to-be-synced app? Thanks!