Basic save button question

Hi
I am new to apex and im try to figure out how a save button works.
it is on a page where employee details can be updated and if you enter a leave date and click save an email is sent.
The save button is in the buttons area of the page definition - :) not suprisingly
there is a send leaver notification in the processes
but i cant find the code that triggers the process within the button.
Probably a basic question
thanlks in advance.

as the button is called SUBMIT does this then create the link?Not really.
The button name alone isn't what determines that it has the ability to kick off a process (although if you created it with a wizard in Apex it might have defaulted or suggested that name to you).
You can call the button "Jabberwocky" or "Gobbledygook" if you want and it still will perform a submit action of some kind if it does not call a URL and it does not call a redirect to another page in the app directly in the button definition. If it doesn't do either of those, it will therefore perform a submit action (regardless of the actual button name).
In summary, a button will do one of three things:
1. redirect to any URL
2. redirect to a page in the app (which is really just a special variation of redirecting to a URL)
3. perform a submit action (this is the default if it does neither #1 nor #2).
Does that make sense? So if you look at a button and it does not redirect to a URL or page in the app, it therefore must be doing a submit of some kind.
Then, over in the processes, these will execute if a submit was done and the process is either unconditional or is conditional and the conditions are met. These will fire in the order of the sequence numbers on the processes. These processes are not fired for a URL redirect nor a page app redirect.
Finally, a branch fires after the processes. A branch isn't quite a redirect but more of a "after i'm done processing what control should I return back to the user?" thing.
However, only ONE branch at most will fire. Apex will look at them in the order of the sequence numbers and fire the soonest of the unconditional branches or the conditional branches for which the conditions are met. The first one found eligible to fire will fire and the others will be ignored.
Note that if you have no branches at all or you have conditional branches and the conditions aren't met on any of them:
1. Before apex v4.0 you will get an error (e.g.: page xxx provided no page to branch to), as it expects to find a branch to fire.
2. Apex 4.0 and up will implicitly default to branching to the same page so you won't get an error, however you don't have control of the other branch settings either such as whether or not to display the process success message, clear a cache, etc.

Similar Messages

  • Basic save (rendering) question

    Hi ,
    I am lost on some of the basics, I have a MOV file which I wanted to cut up a bit and then simple resave , apparently this is not
    possible , and or rerender the file in its cut version. There are so many options on how to render a project to movie format
    How can I best import a MOV or AVI recut it and simple re save it without losing having to lose pixels in the process
    thanks a bunch
    Version is Premiere Por CS3 3.0.0 (374)

    Ralph,
    Depending on your source footage, you might not be able to do what you want 100%.
    For the .MOV footage, you might be better off getting Apple's QuickTime Player Pro (US$29 upgrade/unlock). It will allow limited editing, about that which you describe, and will do a pretty good job at letting you Save in the same format.
    Now, if you have DV-AVI Type II material, you can do what you want, and then Export as DV-AVI Type II (uncheck Recompress) and there is only very minimal loss in quality. I doubt that you could ever detect it.
    As a bit of background, let's step through just what happens, when one has footage that is not I-frame (all Frames individually present). First, PrPro will basically convert this GOP (Group of Pictures) footage into full I-frame. The "difference Frames" in that footage will be rendered in, so that one can edit at a Frame level. At this point, you no longer have that original GOP structure, but full I-frame. If you THEN Export to the original GOP format, you WILL recompress that footage, loosing quality. The best that you can probably do is to use an intermediate CODEC, like the Lagarith Lossless, to get an Exported file, though in a new format, not the original compressed GOP one.
    With .MOV files, if the CODEC used is the Animation CODEC, you can do editing and then Export to .MOV, using the Animation CODEC w/ minimal loss in quality. With other .MOV CODEC's, it will very likely not be as good, but that will depend on the exact CODEC used in both the source footage and the Exported footage.
    MOV, AVI, MPEG, WMV are but "wrappers," and much can be inside them - they are NOT created equal. This ARTICLE will give you a bit of background on these "wrappers." I'd also suggest doing a Google search for "GOP" and read some of the articles on Group of Pictures formats. I believe that you'll get the idea of what that footage is all about. Jim Taylor, author of DVD Demystified, has a great analogy, "birds on a telephone," that outlines the GOP structure in clear, easy to understand terms.
    Good luck, and sorry that the answer to your question is - it depends.
    Hunt

  • One save button, multiple regions question

    Hi. I have a question dealing with multiple regions in APEX 2.2. I would like to have a page with two regions. The top displays account transactions for the current period. Due to the nature of the application, there are a fixed number of transactions per period and all fit in one page.
    The bottom regions displays the ROI value for the current period. It pulls from a table that has exactly one row per period. The period is always the same for the top and bottom region.
    The current generation of the page shows the account transactions. The region was generated using the wizard and has a type of "SQL Query (updateable report)." As it, it works nicely.
    When we added the new region for the ROI, we used the wizard, too. The ROI region has the same type ("SQL Query (updateable report)." We have just one SAVE button on the page and it does the submit.
    The problem is that when we save, we get an error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.
    If we delete the bottom region then we don't get this error.
    The fields that it shows are always from the top region, even if we're only updating the ROI. From what I understand, APEX thinks that the cached values have been updated in the database. Since we're testing on a dedicated box, I know that no one else is making updates. I've also seen this error when we've accidentally rearranged the order of the fields in the report query. I think that's not the case here since deleting the new region makes the page work as expected.
    My question is how can we get the two regions to work together on the same page?
    Thanks
    Mike

    Hi,
    When working with report regions only one could be updateable report. You need to delete the region that's not updatable and recreate it as an non-updateable report.
    If need to update another table use a process (PLSQL) called when your save button is pressed.
    Hope could help you.

  • How to enable 'SAVE' button and trigger and event on output screen.

    Hello, in the output screen, the save button is disabled .I need to activate the button and when the user clicks on it another process must be triggered. Anyone worked on something similar before.thanks.

    Your problem description is too vague, and the problem itself seems very basic. Please read about [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Thread locked.
    Thomas

  • How can you remove the Save button on a survey?

    What options are there to remove the SAVE button from a SharePoint survey?
    I need to remove this if possible, I was hoping it would be as simple as editing a form in the Survey list... but that is apparently not the case.
    I need to supress the SAVE button as it confuses end users and we don't want any half completed surveys. Either it gets finished or not at all.
    Can someone hopefully provide me with an nice simple solution?  Or any solution at all :)
    Thanks!

    Hi,
    Save button on the surveys with multiple question or with branching logic enabled is an out of the box feature and it is by design.
    If you want to remove the “save” button in a survey, I think you can use JavaScript to hide this button:
    1. Open your site in SharePoint Designer.
    2. Open your survey list newform.aspx page, in the code view, find this code “<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <table>……. </table> “add the JavaScript” </asp:Content>”, add JavaScript before the “</asp:Content>” tag:
    <script>
    var x=document.getElementsByTagName("input");
    for (var i=0;i<x.length;i++)
    if (x.item(i).type=="button"&&x.item(i).value=="Save")
    {x.item(i).style.display = "none"};
    </script>
    After this, you will not see the “Save” button when create new survey response. You can also add this JavaScript in the editform.aspx page.
    Hope it can help you.
    Xue-Mei Chang

  • How can I write a code that triggers when clicking on Save button

    I want to hide certain fields inside my tracking list, if the login user is not part of the “Managers” group.
    To do so I want to add the following Page-load code inside a web part :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    {SPGroup group = site.Groups["Managers"];
    bool isUser = site.IsCurrentUserMemberOfGroup(group.ID);
    if (isUser)
    {textbox.Visible=false;}}
    And the following custom code that triggers when saving the form :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["ListName"];web.AllowUnsafeUpdates = true;
    SPListItem item = list.Items[SPContext.Current.ListItem.UniqueId];
    txtTitle.Text = item["Title"] as string;item.Update();web.AllowUnsafeUpdates = false;
    But I am not sure where exactly I should add the custom code for the save button ? I tried writing it inside the Oninit method , but I got many errors as shown below:-
    So can anyone advice how i should write the web part to include the Page load & the custom save button code?
    second question in general is my above approach considered valid , i mean to hide/show list columns using web parts ?

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • BSP-Error while adding a "Save-Button" to a View

    Dear Community,
    I have created a UI-Component which contains a Window and a View. I already connected the view to the window. What I'm trying now is to add a "Save-Button" to save the input of the view. This is my Structure:
    The Code of USERINPUT.htm is as follows:
    Here are my Questions
    1) What exactly do i need to put into parameter "id" and "table" within the configCellerator? My window and view are connected and when it opens there should be the "Save-Button".
    2) When I select "Test" my browser opens but I cannot see the preview, intead I get this exeption. Is my code wrong or where is my mistake?
    Thank you for your help!
    Marcel

    Hi Marcel,
    if you want to create buttons in your form view there is a method in your implementation class that is
    get_buttons.
    you have to implement the method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS from your implementation class.
    example:
       *****************SAVE***************************************************************************
      CLEAR ls_button.
      ls_button-type     = cl_thtmlb_util=>gc_icon_save.
      ls_button-on_click = 'SAVE'.                              "#EC NOTEXT
      ls_button-page_id  = me->component_id.
      ls_button-enabled = abap_false.
      IF view_group_context IS BOUND.
        IF view_group_context->is_any_view_editable( ) EQ abap_true AND lr_entity->is_changeable( ) =abap_true.
          ls_button-enabled = abap_true.
        ENDIF.
      ENDIF.
      APPEND ls_button TO rt_buttons.
    * Toolbar Divider
      CLEAR ls_button.
      ls_button-type     = cl_thtmlb_util=>gc_separator.
      ls_button-enabled  = abap_true.
      APPEND ls_button TO rt_buttons.
    And write an event handler for this:
       METHOD eh_onsave.
      DATA: lr_core    TYPE REF TO cl_crm_bol_core,
            lr_entity  TYPE REF TO cl_crm_bol_entity,
            lr_tx      TYPE REF TO if_bol_transaction_context.
      lr_entity ?= me->typed_context->btadmini->collection_wrapper->get_current( ).
      lr_tx ?= lr_entity->get_transaction( ).
      IF lr_tx IS NOT BOUND.
        lr_core = cl_crm_bol_core=>get_instance( ).
        lr_tx = lr_core->begin_transaction( ).
      ELSE.
        IF lr_tx->check_save_possible( ) = abap_true.
          CHECK lr_tx->save( ) EQ abap_true.
          lr_tx->commit( ).
        ENDIF.
      ENDIF.
      me->view_group_context->reset( ).
    when ever you want to call any transaction while button click go through this link..
    call transaction launcher on button press with parameter passing
    you can come to know how to call.
    in that doc you have to create one transaction launcher for your standard workflow. then that tcode you
    need to call using that concept..
    if you want to create table view  go through this link..
    SAP CRM WEB UI : 43.CREATING TABLE VIEW FOR LINE ITEMS WITH DEPENDENT CONTEXT NODES
    CRM Web UI Technical - Creating Table View In Web UI - CRM - SCN Wiki
    Thnaks & Regards,
    Srinivas.

  • Save button is not working for ONE CLICK ACTION

    Hi All,
    We have embeded a custom table view in a standard component.While we are editing the first row of the table view by ONE CLICK ACTION & pressing the SAVE button of overview page,then the record is saved in the database. But if we edit any row other than the 1st one,the save button is not working.
    We have used transaction context here for simple object.
    lv_tx_ctxt = lr_ent_bt->get_transaction( ).
    my_tx_context->add_tx_context( lv_tx_ctxt ).
    Please suggest how we can focus on the current line which we are editing & can save the record in database?
    Thanks.

    Hi Hakan,
    Probabaly this is not my problem. I know that how bt one click we can get the desired row.
    Let me briefly explain you my requirement and currently where I am stuck.
    I have a assignment block ( custom) in the main overview page with a custom table view ( ie in the view we are displayng entries in the table view ) and the user can press edit button on any row and that will open the particular row in edit mode . User will change the value in any of the columns and press save button on the main component and the custom changes will be saved in the database.
    Now the problem that we are facing is when we are chnaging the first row it si working but when we are doing chnages in the 2nd row or 3rd row changes are not saved ( not even in the table view that is getting displayed) .
    *Let me briefly tell you the approach that we took  . Since our table view uses a simple object  ( which is not a related object with BTORDER so we need to explicitly save the simple object entities to transaction context and for doing that we have redefined the eh_onsave method in the overview page) .
    *Now the save button is in overview page so to pass the entry from our custom table view to overview we are using custom controller . The custom controller 's collection wrapper only has the first entry of the table view custom_controller->collection_wrapper->get_next is failing which is the reason why the 2nd entry is not getting saved.
    Can you tell me how i can get all the table entries in my custom controller's collection wrapper?
    Let me know if you have any other questions.

  • How to keep the save-button active all the time?

    Hi!
    I'm using mobile sales 4.0.
    On a tile i've only fixed questions and combo boxes with yes and no ...
    When i write manually a "yes" in the combo box field the save button is active - When i use the combo box with a mouse click the save-button isn't active.
    What are the settings i've to do to keep the save-button active all the time?
    Thanks a lot in advance.
    Best regards,
    Ingo

    Hi Ingo,
    If your combobox is a bound control, then when you change a value in it, the save button should be enabled. Strange. But anyway, you can do this.
    In the <b>combobox_OnValueChanged2</b> event, make a call to makeDirty method in the tile:
    If boundAttributeChanged Then
         <b>anchorthatyourcombotiedto</b>.bo.MakeDirty True
    End If
    This will make the Save button enabled.
    Regards, Vadim.

  • How to disable the Save button For a pdf?

    Hi,
    I have a requirement that when you open the livecycle developed pdf, the Save option available in the toolbar (Save As icon) and File menu of the Reader should be disabled. A button will be provided in the form separately to provide the Save functionality. Can anybody help me reg. this? Is there any setting available for this in Adobe Pro or any other tool?
    Regards,
    Maria

    It's not really difficult to disable the save button. But it depends on the context from where you want to delete it. even if you disable the save button the user has the option to print screen and create a fresh pdf. So your question has some philosophical aspects to deal with. Please mail me at [email protected] incase of further quries. I've understood your problem and have got a solution but it's not somewhat legitimate to do. I can share it with you through email.

  • Trigger a process chain when user clicks on save button in web interface

    Hi All,
    This is a issue I'm facing with the BW BPS web interface.
    BPS web interface generates a BSP application so thought posting this question in BSP forum might get some responses.
    The issue is I have to trigger a process chain when the user clicks on the save button on the web interface.
    I have no clue how BSP works. So if anybody has any ideas or suggestions I would greatly appreciate it.
    Thanks,
    Harini

    Hi Dhanya,
    This is the code i have in the ABAP program in the process chain. I just included the API_SEMBPS_POST part, but still it doesn't work. Please give me your email address so that i can send some screenshots.
    REPORT  ZHTEST.
    DATA: l_subrc TYPE sy-subrc.
    DATA: ls_return TYPE bapiret2.
    CALL FUNCTION 'API_SEMBPS_POST'
    IMPORTING
       E_SUBRC         = l_subrc
       ES_RETURN       = ls_return.
    CALL FUNCTION 'RSAPO_CLOSE_TRANS_REQUEST'
      EXPORTING
        I_INFOCUBE               = 'ZMAP_TAB'
    EXCEPTIONS
      ILLEGAL_INPUT            = 1
      REQUEST_NOT_CLOSED       = 2
      INHERITED_ERROR          = 3
      OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Tring to save data for n iterations, beginning when SAVE button is pressed

    OK, I'm STILL struggling with this vi.  (See post from 12/16).  I've cleaned up the code considerably, and better defined what it is I want to accomplish.  When the vi begins, I want to immediately begin displaying on the front panel 3 values: Indicated Flow Rate O2, Indicated Flow Rate N2, and Helium Concentration.  When the operator presses the SAVE button, I want the next n iterations to be saved to file.  N is determined by the Measurement Duration (in minutes) divided by the measurement interval (in seconds).  After the desired number of data points are saved, the operator can press the stop button, at which time the vi goes to frame 1 of the sequence, shuts off the Helium Solenoid and returns the detector to standby.  The whole key to this vi is being able to monitor the data in real time, and decide based on measurement criteria when to begin saving the data, initiated by pressing the SAVE button.  Somehow, I know I need to initiate the save with the case statement, and then save the data (n-1) more times.  When I tried a loop within a loop, I just saved the same data for the given # of iterations, and then the displays began updating again.  Is this making any sense at all?  I'm beginning to understand what an aneurism feels like.
    Attachments:
    Master He Concentration 12_20 V5.vi ‏88 KB

    One possibility solution is attached. Basically, we have a shift register that contains zero and regulates a case structure. Case zero is empty. If save is pressed, we feed a positive, nonzero number to it , which triggers the default case that (1) saves a data point and (2) decrements the shift register. This contiunes until the shift register reaches zero again.
    Modify as needed.
    btw: there is no reason for any local variables, use direct wires.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Master_He_Concentration_12_20_V5MOD.vi ‏75 KB

  • Save Button to Submit Button

    I have a form in SharePoint and by default at the top when a new item is created it says Save, Close, Copy, Paste. How can I make the Save Button a Submit Button?
    I am new to SharePoint and don't know how to do much so be specific.
    Thank you.

    One way you can do is by customizing the list using InfoPath and choose to disable the menu or add you custom buttons to replicate the button action.
    Since you have not mentioned about the SharePoint version, I assume that your SP Version supports InfoPath.
    http://msdn.microsoft.com/en-us/library/gg180738(v=office.14).aspx
    http://office.microsoft.com/en-us/infopath-help/modify-a-published-form-template-HP010103091.aspx
    http://office.microsoft.com/en-us/sharepoint-designer-help/edit-list-forms-using-infopath-2010-in-sharepoint-designer-HA101631624.aspx
    http://blogs.msdn.com/b/infopath/archive/2009/12/17/customize-a-sharepoint-list-form-using-infopath-2010.aspx
    http://blogs.msdn.com/b/infopath/archive/2010/01/27/create-a-sharepoint-list-using-infopath-2010.aspx
    http://community.office365.com/en-us/b/office_365_community_blog/archive/2013/05/21/infopath-save-and-new-button-grid-user-post.aspx 
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Save button enabled in MAX, but no changes to apply

    Hello,
    I have a situation with a number of my RT targets.  When I open an RT target in MAX, the Save button (and Revert button) are enabled as if there are settings to be applied to the unit.  I've gone through the process of pressing the save button and rebooting multiple times, and it still come back online in MAX as though there are settings to be saved on it.  I've also tried the Revert button with the same results.
    Please see the attached screen shot.  This was taken imediately after a RIO reboot, and launching MAX right after the unit came online.
    I have remotely installed software to the RIOs, and needed to set a password on some of the units recently.  But since then I've been able to verify that the software is infact installed and the passwords are infact set.  And some of these units have had restarts to be able to apply these setting many times.
    So my question is, what could be causing MAX to think that there are setting to be saved to the RIO yet?  Thanks in advance for any help.
    Attachments:
    RIO Save Revert.JPG ‏164 KB

    I had not, prior to your message, Richard.  So I did go through that process, but it did not correct the issue.  It seems to me, this issue resides on the RIO, not on the host computer.  I say this because I've had my colleagues access the RIO from their computers and see the exact same issue.
    It does appear we have a fix though.  We have installed software, where the RIO reboots into install mode and completes the installation, the reboots again into normal mode.  After this point, the problem has not reappeared.  The RIOs have gone through numerous reboots, but this is the first time since the problem arose where we booted them into install (or safe) mode. 
    For any future viewers, I will do a test soon to see if simply booting in safe mode will fix it.  But installing additional software does, and luckily we need to for our project.

  • Hiding the save button in transactions

    Hi all,
    Can anyone please tell me how I can hide the post button button in transactions FB60, FB65, FV60, FV65, FB70, FB75, FV70 & FV75.
    My client would want all transactions to be parked and authorised via workflow.
    Thanks for your help in advance

    Once you're in transaction SHD0, you should get to a point where there is a pop up box titled "Confirm Screen Entries".  Select Basic Data and then click the button for Menu Functions.  Open the Menu Bar and then Document.  You will see the SAVE command in here.  Click once on the SAVE and then select the Deactivate button next to the green checkmark.  That line will turn yellow, select the green checkmark or hit the enter key to return to the "Confirm Screen Entries" pop up box.  If this is the only change you would like to make, you can select the Exit and Save button.  Don't forget to Activate it as your Standard Variant.
    I hope this helps!

Maybe you are looking for

  • Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

  • Display Image based on DropDownList C# ASP

    Hello, So I basically created SQL Server Database and I got it working with displaying my images and drop downlist and everything, however, I want to make it to display an image only if a continent is selected. So if I select Europe, I would like to

  • Is there a Mail virus?

    My wife complained that all the emails had disappeared from her Powerbook. I checked, they had gone. I looked in the deleted email folder in library where there were about a dozen of the last emails received. As I looked they disappeared one by one.

  • Off topic question in DOS Batch files ...

    Hi, I am sorry in advance, for posting an off-topic question. But I had no other known way. I need to invoke 8 sessions of a java program on 8 different windows. I use Windows platform. I want to write a batch file that will cause the java program to

  • LX26, Quant for storage bin can not be counted

    T code LX26 , executed for a WH/storage Type .The report displays some bins as Ready/Blocked or Overdue /Blocked and when trying to activate those for counting the error message flashes - Quant for storage Types XXX can not be counted . How can I unb