Logics question in form

I have a multi record block that some triggers should fire and called a workflow process.I have a serial_status text item, when this status changes from OPEN to REVIEW, then the workflow process is called. I put my trigger in post_forms_commit, however, post forms commit fires whenever, you save your form ,but I want this to fire one time only, when status changes from open to review only and subsequent change should not fire again. I also put the tigger in post update, but whenever any other field is updated , post update will fire multiple times too. Please, any suggestion will be highly appreciated.
Thank you
Ade

I guess what ADE is saying, after looking at the whole post over again, for like a fifth time..
is.. I think... :)
1) I want to do something only if the records are commited.
2) I want to do this do_workflow process once for each commited row if my status changed from "open" to "review".
so.. post-update isn't going to work because the commit hasnt happened yet. The data is only posted and there could be a rollback so you wouldnt want to do the do_workflow process until you are absolutely sure your data is safe and sound in the datbase. My implementatation at the top of this thread is also not going to work for the very reason Ade pointed out about the post-data-base commit on happening once.
However, Ade, you could follow my thread above using the post-data-base-commit... Call a quick expiring timer in the post-data-base commit set for like a 10th of a second. In the when-timer-expired trigger loop through every record in the block and see if the value is set to 'Y'. If the do_workflow = 'Y' for the record then do the workflow process for that record and then change the value to 'X' or something that means dont ever do this again.
If you are wondering why you need a timer in a post-database-commit it is because you cannot navigate in a post-data-base commit, but you can navigate in a when-timer-expired hence the need for a quick expiring trigger so the code executes immediately. Yeah.. this trick/hack/kludge is used quite a bit. I didnt even know about it myself until about a year ago.

Similar Messages

  • Custom calculation Script logic question

    I am trying to create the following logic in my form however cannot get it to work, help!
    I have two fields:  LocNumber and LocAddress.   If LocNumber=NY001, I want LocAddress to populate with "Times Square", if LocNumber=NY003, LocAddress should populate with "Wall Street Plaza", if LocNumber=NY005, LocAddress should populate with "Third Avenue", and so on and so on.  My javascript below results in the field populating with Times Square only.
    var n = this.getField("LocNumber").value;
    if (n = "NY001") {
        event.value = "Three Times Square,  11th Floor,  New York, NY 10036";
    else if (n = "NY003") {
        event.value = "Wall Street Plaza, 88 Pine Street, 32nd Floor, New York, NY 10005";
    else if (n = "NY005") {
        event.value = "750 Third Avenue, 27th Floor,  New York, NY 10017";
    else if (n = "NY006") {
        event.value = "156 West 56th Street, 19th Floor, New York, NY 10019";
    else if (n = "NY007") {
        event.value = "111 Great Neck Road,  Suite 416, Great Neck, NY 10021";
    else if (n = "NY008") {
        event.value = "909 Third Avenue, 20th Floor,  New York, NY 10022";

    The comparison operator of JS is "==", not "=", which is used to assign a value.
    So this code:
    if (n = "NY001")
    Should be:
    if (n == "NY001")

  • A few simple Logic questions...please help.

    I have a few probably simple Logic questions, that are nonetheless frustrating me, wondering if someone could help me out.
    1. I run Logic 8, all of the sounds that came with logic seem to work except organ sounds. I can't trigger any organ sounds (MIDI) on Logic, they won't play. I have a Yamaha Motif as my midi controller.
    Any idea why?
    2. I've starting running into a situation where I will record a MIDI track, the notes are recorded but they won't playback. The only track effected is the one that was just recorded. All other midi tracks playback.
    I have to cut the track, usually go out of Logic and back in, re record for it to playback properly. Any idea why this may be happening?
    3. How important is it to update to Logic 9. Are there any disadvantages down the road if I don't upgrade. If I purchase the $200 upgrade, do I get a package of discs and material, or it just a web download.
    Any help is appreciated!
    Colin

    seeren wrote:
    Data Stream Studio wrote:
    3) You get a full set of disks and manuals.
    They're including manuals now?
    I think his referring to the booklets ...on how to install etc
    It would be great to see printed manuals though ...I love books especially Logic/Audio related !!
    A

  • Follow-up question about forms and SharePoint Online

    I asked a question about life after InfoPath earlier, and got a good answer:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fb23b3d9-8a09-4267-aab5-09929f6a3082/life-after-infopath-seeking-advice
    After looking at all of the limitations of SharePoint Online, I'm wondering how developers are dealing with the limitations. Lets say you are asked to develop something that has complex logic, including fetching data from external web services, dynamically
    displaying parts of a process to people depending on role, and ending up with a printable document. In our on-premises environment, InfoPath is well suited to this task, with some code behind for some things. Or, if not using InfoPath, we would use application
    pages and workflow.
    Neither of those are available in SharePoint Online, so what would you do?

    Some things, such as the conditional display of content, can be done via JavaScript. More advanced items, such as integrating external web services would likely require a SharePoint "app". A SharePoint app is essentially a link to a separate site
    that is running an asp.net web app (or PHP, or whatever). This asp.net site can do anything it needs with any web services, or conditional formatting, or anything. Because it's registered as a SharePoint app, it can also call back into the SharePoint site
    and work with data. So, a SharePoint App could present the user with a robust form that simply sends the data back to a SharePoint list. The SharePoint app can also be surfaced on the SharePoint site itself in an iframe, so the user won't know that the form
    is hosted by another server.
    By the way, the ideas behind the app model permeate the entire SharePoint environment: instead of having the SharePoint server itself run all kinds of custom business logic, that workload is handled by other servers, so the SharePoint servers can be focused
    on running the core bits of SharePoint. InfoPath puts a large load on the servers, so it's out.  XSLT list views also put a load on the server, so they're also out. SSRS is an amazingly fantastic tool, but is not supported in the cloud (and there's no
    alternative). Timer jobs, event handlers, workflow, and many other things have been re-architected to take the load off the SharePoint servers.
    Mike G.

  • Adding Logic to a Form

    How can I add logic in two questions of a form?

    How can I add logic in two questions of a form?

  • New user with several questions on forms and useage.

    Once a user fills out a form, is there a way to make the data in the text fields un-editable?
    While I'm here, on the same form there are several fields that are required to be filled out. Is it possible to prevent the user from being able to save the form before they fill out the required fields?
    I have an Excel file that when opened asks the user for certain data and automatically puts the entered data into the required cells using VB. Is it possible to do the same in Adobe?
    Been using Acrobat for years, but my company only uses it for simple pdf creation and maybe putting stamps on customer supplied files, so these probably seem like simple questions.
    By the way this is on Acrobat 8 Pro.
    Thanks for any help!

    Once a user fills out a form, is there a way to make the data in the text fields un-editable?
    Yes. The best is by using a digital signature. Second best is by using a script to set the fields as read-only at some point.
    Is it possible to prevent the user from being able to save the form before they fill out the required fields?
    No. You can set fields as required but that only applies when the file is submitted. You can display an error message when the file is being saved if some of the required scripts are not filled-in (using a script), but you can't prevent someone from saving the file.
    I have an Excel file that when opened asks the user for certain data and automatically puts the entered data into the required cells using VB. Is it possible to do the same in Adobe?
    Yes, that's possible. Again, using a script.
    By the way this is on Acrobat 8 Pro.
    This is quite an old version, not compatible with any current operating system. You should consider upgrading...

  • Questions about forms users once the form is completed

    I am on a Macintosh platform, OX 10.5 (Leopard), using Adobe Acrobat Professional that came with CS3 (version 8 I believe - I am not in front of that computer at the moment). I have creted a few forms in LifeCycle, but now my boss wants this to be completely Mac so Monday I need to start creating them in a Mac. I know the basics of how to create a form from a pdf file.
    Here are my questions:
    1 - Acrobat 8 is so old I can't find any help information in the Adobe help section. Everything that says version 8 takes me to X or XI when I click on the link. Does anyone know where I might find some help with this version?
    2 - How do I create a form that the person using can save with the data, the completed fields, so they can open it again and look at what they filled in?
    3 - As a corrollary to number 2, how can we also get the data?
    4 - We want to take a booklet that has been paper up to now, create a pdf, and then number them to sell for one use only.  Is there any way to make a form one-time-use only, so it can't be passed on to someone else to also complete?
    I appreciate any help I can get. Thank you.

    2. You need to apply the Extended Reader Rights. In version 8 I believe it was under the Advanced menu.
    3. The users can submit the file back to you in various formats, such as PDF (the entire file), FDF, XML, etc.
    You can add a submit button to the file that will help them do that, or they can just do it themselves.
    4. Impossible, unless you use some kind of DRM technology, but those are extremely expensive.

  • How to install Discoverer 11g on Web Logic Server with Forms and Reports 11g Rel2

    Hello,
    We finally started to migrate from Oracle iAs 10g Release 2 to Oracle Forms and Reports 11g Release 2 using Web Logic. I don't see an option to install Discoverer on the server.
    My OS: windows 2008 R2
    Installed Web Logic 10.3.6
    Forms & Reports: 11.1.2.2.0_64 (64 Bit Forms)
    How do I install Discoverer Plus in 11g? All I can find is Discoverer 11g Desktop/Administrator to run on User work Station. We were using discoverer Plus in 10g iAS.
    Thanks
    Rao

    907485 wrote:
    Hi:
    I need to install oracle 11g from VNC viewer. The VNC is stalled on linux. I managed login. Now I have a screen that has some icons on the top like, Connection Options, "i", refresh, CTRl, ...
    under that I have
    Accept clipboard from viewers
    Send clipboard to viewers
    Send primary selection to viewers
    From the Connection Options window, I checked Hextile for Use encoding and Let remote server deal with mouse cursor.
    What is next? How do I connect to the server. (When I login I used hostname:1)
    Thankyou.we only know what you post.
    where does linux reside?
    where is VNC installed?

  • Question regarding forms in Flex 3

    Hello,
    I currently have a Word form document that is filled out and then converted to HTML and displayed on several monitors at various workstations throught my office.
    I would like to use Flex 3 to customize this process a little. I want to be able to create a Flex application that a manger can use to fill in the various forms, using combo boxes, etc, then export it to the workstation monitors for employees to view. The information must be locked at the workstation - employees can not have the ability to change the information.
    Can I do this with Flex or is it better to jsut stick with the Word document? There will not be a need for any database interaction (unless it is required to disable functionality on the workstation monitors).
    I hope I explained what I need clearly enough!
    Thanks for any help!

    People viewing the data would access the Flex app via a URL, and the manager could use the "admin" section of the app to enter the data.
    You would need something on the back end to store the data entered by the manager.
    You could use AMFPHP to implement a "push" technology to update viewers screens with new data automagically.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com

  • Logical Functions In Forms?

    We have a basic Excel form that we are converting to PDF since our users don't have Excel on their PCs. Anyway, it is a very simple form where the user enters data into three fields and then two calculations are automatically performed using Divsion. But when we put it into PDF, it keeps telling us one of the calculated fields is in the wrong format when one of the entry fields is empty. The calculated fields are set as Percentage. This is the formula in Excel? Can we transcribe it over to PDF? =IF(R)=0,0,(W/R)
    Or is there a better way to have it ignore empty fields?
    Thank you

    Yes you can test for a logical true or logical false value and control the execution of the code. It is even possible to set an object's property that has a true of false value with the result of a logical comparison. This can be done with a document level function for the division that can be used within the entire form and custom JavaScript calculation for a field.
    // document level function for use in entire form
    function Divide(nDividend, nDivisor) {
    // divide nDividend by nDivisor and return result
    return nDivisor == 0? 0 : nDividend / nDivisor;
    } // end Divide function
    // end of document level function
    // custom calculation script for a field
    // values to process
    var W = this.getField("W").value;
    var R = this.getField("R").value;
    // perform division
    event.value = Divide(W, R);
    // end of custom calculation script

  • A few protools to logic questions.

    Hello.
    long time protools user and returning logic user (version 3.x was the last interaction)
    am really enjoying the sequencing aspects to logic but am becoming increasingly frustrated by what seems to be a few really simple features but constantly used features of protools.
    hopefully someone might be able to point me in the right direction.
    they all have to do with audio editing.
    1) selection snapping to timeline. i have found the marquee tool, but how do then snap the playhead to where i want to place the copied selection?
    2) duplicating a region on the time line creates a second instance of the region, however its the same instance.. thus any editing will occur to all regions. is there was a way to default this to automatically create new regions (as in protools, well in protools it creates a new region once edited).
    3) another question on snapping.. in the main timeline you can select snap to bar.. but is there way to snap to smaller transients than a whole bar? i know you can set that in piano roll.. but what about for either the sample editor or the main timeline?
    these are all key features which are used constantly in protools.. and before i get a barrage of responses, i know logic isnt protools.. but some of these features i have mentioned are present across most if not all audio editing applications (cubase, live and even fruity loops)
    i would really like to cross back to logic, but i need to be able to perform the same basic tasks..
    help me obiwan..
    tom

    Not sure about question 1, mainly because I have always just manually moved regions where I wanted them. But because of the answer to question #3, it's never been an issue for me.
    If you click and hold on the "Snap" menu (upper right hand corner of the Arrange page), you'll see a drop down list of options, which include, bar, beat, division, ticks, frames, etc... this helps limit where the region will land while dragging. I personally leave it set to "smart", which, depending on zoom level, allows me to place regions exactly where I want, very quickly.
    My "nudge" key commands also help in certain circumstances.
    As far as duplicating a region, yes, you are merely copying the region, but it's still referencing the same audio file, so any edits done on one will affect all copies.
    After option/dragging a region, if you want to edit it, and ONLY that particular copy, simply go under the audio menu, and select "Convert Regions to New Audio Files". This can be assigned a key command, so it can be a pretty instantaneous thing. Now it's a separate audio file, and any edits done to it won't happen on the original.
    Hope some of that helps...

  • Questions on Forms 6i

    Hi All,
    My company needs to install Oracle forms. I am a DBA, so I have no experience with forms. I was hoping someone could answer come questions for me.
    We are running Oracle 8i, so from what it looks like, I'm looking at Forms 6i?
    I downloaded some Client Install instructions for Forms. They seem pretty straight forward.
    However, since we will want to be sharing these forms and have everyone in the comany use them, I assume I need to install some server component. I have no clue where to look. I was told that I need to install iAS? I have no clue on what that is.
    So, I'm looking for someone to help me out with what I'll need so the developers can work on their stuff, and then the users can use the forms, etc.
    Any help would be appreciated.
    Thanks,
    Arthur

    We are running Oracle 8i, so from what it looks like, I'm looking at Forms 6i?Forms 10g runs fine against Oracle 8i (I just checked out several of my forms). Forms 9 and 10 are web-based only, while Forms 6i can be run either in client/server mode, or web mode. Although I prefer the client/server mode, Oracle has terminated support for it, so you should be installing 10g.
    When you use web forms, the client install is not necessary, since web forms run via a browser session. The only thing the client needs is a browser plugin, Jinitiator, which when setup correctly, will download and self-install the first time the user accesses web forms. And it is web forms that requires that you install iAS.

  • Can PDF Fillable Questionnaire be expanded base on answers to questions on form?

    Our users have a fillable Word form that links to other Fillable Word forms.  They want to have the form display or remove questions based on answers given to previous questions. Please let me know if this can be done in Adobe Acrobat Professional 8, because we are trying to get away from doing our fillable forms in Word.
    We are running Acrobat version 8 on an Office XP machine.
    Thanks for the help.

    In Acrobat Pro go to Advanced>Enable Usage Rights in Adobe Reader.
    > No, it won't allow her to even enter information in the text fields.
    Maybe she's not even using Reader? Possibly Mac Preview (but I don't think that gives you the purple bar. Not actually sure)?

  • Questions about Forms 11g !!!!!!!

    Hi,
    I have few questions regarding Oracle Forms & Reports 11g. I have installed Oracle Forms and Reports 11g on Linux and it is working and running fine. In our environment, all the operating systems are on Linux like Database Server, Fusion Middle Ware and our client's machines are also on Linux. My questions are below;
    1) This time only I am accessing Forms and Reports Developer from my Linux machine, Can more than one developer access Forms and Reports Developer from their machines?
    2) During Reports migration from 6i to 11g Linux, how I can keep the same Reports font on 11g Reports
    3) Can I keep the same Forms 6i short cut keys in Forms 11g, like F7 for Enter Query, F8 for Execute Query, F10 For saving record instead of using F11 for Enter Query, Ctrl+F11 for Execute Query, Ctrl+S For saving record?
    4) When I run my Application "Oracle Forms Services Oracle Fusion Middleware 11g" message comes. Can I display my own message?
    5) What is the best practices for migrating 6i Application into Oracle Forms 11g Linux.
    Thanks in Advance,
    Yousuf.

    You can find the "Forms 6i to 11g Migration" document here:
    http://download.oracle.com/docs/cd/E15523_01/doc.1111/e10394/toc.htm
    Other upgrade documents (including Reports/Portal, etc) can be found here:
    http://download.oracle.com/docs/cd/E15523_01/upgrade.htm
    Hope this proves useful
    R/ Zaf

  • A question regarding form

    hi,
    i am wondering... is there any way that when my form is displayed first time on screen... it will be
    in MAXIMIZED STATE....
    bye

    Hi farhanmunir99,
    There are many threads in the archive regarding this question. Did you look there?
    Regards,
    Nick G.

Maybe you are looking for