APEX 5 calendar add entry with button

Hi all

In our application (APEX 5.0.1) we use a calendar and to display a separate button to add entries in the calendar.

The button works fine and opens the same page such as specified in the 'create' link and the insert works fine as well.

The only problem we seem to have is that when we submit the page via the button, the calendar does not show the newly inserted record.

When we do by means of clicking on a date, it works very well.

After refreshing the page, the two records are displayed.

Adding an offshoot tried for the calendar, but it did not help.

An idea that could help to solve this problem is welcome.

Kind regards

Kim

Hi Kim Mertens.

Kim Mertens says:

In our application (APEX 5.0.1) we use a calendar and to display a separate button to add entries in the calendar.

The button works fine and opens the same page such as specified in the 'create' link and the insert works fine as well.

The only problem we seem to have is that when we submit the page via the button, the calendar does not show the newly inserted record.

When we do by means of clicking on a date, it works very well.

After refreshing the page, the two records are displayed.

Adding an offshoot tried for the calendar, but it did not help.

An idea that could help to solve this problem is welcome.

What type is your calendar entry page? Normal dialogue / Modal?

I think it is the modal dialog box / Popup, you can use the dialog close event to refresh the calendar area using dynamic action.

Here's an example where I demonstrated refresh calendar region on the evolution of the selection list using dynamic action.

Reference: Re: Please help. Make a dynamic action

Kind regards

Kiran

Tags: Database

Similar Questions

  • Problem in Add entry with 99 k attributes

    Hello

    I have a problem with a ldapmodify to sunlight DS 5.2 P3.

    My ldif has an entry with the managedDomains attribute 99472 (managedDomain is multivalued attribute).

    When I try to add this ldif in my ldap, I have a problem:

    adding new entry providerName = example, o = Com
    ldap_add: failed to contact the LDAP server

    If I divided this file into two files with 50 k attributes in one and 49472 in another, try to add it, it works.

    If I delete the first file (with 99472 attributes) 1000 managedDomain and I try to add this new file (with the 98 k attribute), it works too.

    Any ideas?

    Note: All tests were launched from the same machine.

    This is probably why you now see this kind of error. You could empty the physical input (attribute nscpentrywsi) to get an idea of what is currently his size.

    Anyway, once you increase size BER [you must shut down the instance of DS, set nsslapd-maxbersize: 4194304 in dse.ldif (that is 4MB, but you can increase up to 2147483647 = 2 GB), restart DS instance] you should be able to get around this limit.

    Kind regards
    Marco

  • My Calendars ipad2 entries synchronize with my iphone 6, but the 6 s iphone calendar entries will not sync at ipad2?

    My Calendars iPad2 entries synchronize with my iPhone 6, but iPhone calendar entries will not sync to my iPad2?

    If you use iCloud for you calendar, then they must synchronize.  Is enabled on both devices under settings-> iCloud calendar?

  • Problem with PPR in a table advanced with the insertion of several lines in create the page using 'add a new button '.

    Hello experts,

    I created a page that contains an array of advanced, 6-7fields (including a poplist column)

    Whenever I have add a new using the line add new line button, I get a null pointer exception.

    Code in Scenario1.


    Public Sub handleCurrencyChangeEvent()

    {

    PVO OAViewObject = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    Line OARow = (OARow) pvo.first ();

    OAViewObject dtlVO = (OAViewObject) findViewObject ("xxEcreditCardDtlVO1");

    OARow dtlRow = (OARow) dtlVO.getCurrentRow ();

    String currency = (String) dtlRow.getAttribute ("CurrencyCode");    / / NULL POINTER EXCEPTION

    If ((currency == null) |) ("AED".equals (currency)))

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    }

    on the other

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateRender", Boolean.TRUE);

    }

    }

    Public Sub initPVO()

    {

    OAViewObject appPropsVO = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    If (appPropsVO! = null)

    {

    If (appPropsVO.getFetchedRowCount () == 0)

    {

    appPropsVO.setMaxFetchSize (0);

    appPropsVO.executeQuery ();

    appPropsVO.insertRow (appPropsVO.createRow ());

    Line OARow = (OARow) appPropsVO.first ();

    row.setAttribute ("RowKey", new Number (1));

    }

    }

    handleCurrencyChangeEvent();    / / If I comment on this call, there will be no null pointer when I click on the button Add a new rank and PPR will not be the first line when I select the poplist.                 

    }

    Public Sub createDetailRow()

    {

    String hdrId;

    OAViewObject hdrvo1 = (OAViewObject) getxxEcreditCardHdrVO1 ();

    OAViewObject dtlvo = (OAViewObject) getxxEcreditCardDtlVO1 ();

    Initialize and create a line of VO

    If (! dtlvo.isPreparedForExecution ())

    {

    dtlvo.setMaxFetchSize (0);

    dtlvo.executeQuery ();

    }

    Line dtlrow = dtlvo.createRow ();

    dtlvo.executeQuery ();

    int count = dtlvo.getRowCount ();

    dtlvo.insertRowAtRangeIndex (count, dtlrow);

    Development of the sequence for the number of request *.

    Number of dtlseq = getOADBTransaction () .getSequenceValue ("xxdm. XXDMI_ECREDIT_CARD_DTL_SEQ");

    hdrId = hdrvo1.getCurrentRow ().getAttribute("CreditCardHdrId").toString (); mind vo

    dtlrow.setAttribute ("CreditCardHdrId", hdrId);

    dtlrow.setAttribute ("CreditCardLineId", dtlseq);

    dtlrow.setAttribute ("LineNumber", count + 1);

    End of sequence generation *.

    dtlrow.setAttribute ("CurrencyCode", "AED");

    String currency = (String) dtlrow.getAttribute ("CurrencyCode");

    System.out.println ("CurrencyCode:" + currency);

    dtlrow.setNewRowState (Row.STATUS_INITIALIZED);

    } / / end createDetailRow()

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    Event string = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

    * Treatment add line button *.

    If ((ADD_ROWS_EVENT. Equals (Event)) & & "AdvTblRN".equals (pageContext.getParameter ("source"))) ".

    {

    am.invokeMethod ("createDetailRow", null);

    am.invokeMethod ("initPVO");

    } //**End add row button *.

    otherwise if

    ("currCodeChangeEvent".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))

    {

    am.invokeMethod ("handleCurrencyChangeEvent");

    }

    ===========================================================================================================================

    Could please help what is wrong in the code, I followed all the steps as stated in the guide, but the table advance, the problem starts whenever I click on the button Add a new row for the creation of new line.

    I couldn't understand what was wrong with the code.

    Thanks in advance,

    Suman

    Suman,

    A few points:

    1. Why do you call handleCurrencyChangeEvent in the event to add a line? Simply set the useful, likely of the values in the line it himself.

    ex:-instead of calling the handleCurrenyChange method, simply add the below lines inside the createDetailRow()

    dtlrow.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    2. it looks like you have on the field of the currency and that fireAction handleCurrencyChangeEvent action method is called, right?

    Instead of using dtlVo.getCurrentRow, use the code below:

    public void handleCurrencyChangeEvent(String eventRowSourceParam)
      {
      OAViewObject pvo = (OAViewObject)findViewObject("xxCurrencyPVO1");
      OARow row = (OARow)pvo.first();
    
      OAViewObject dtlVO = (OAViewObject)findViewObject("xxEcreditCardDtlVO1");
    
      //OARow dtlRow = (OARow)dtlVO.getCurrentRow();
      OARow dtlRow = (OARow)this.findRowByRef(eventRowSourceParam);
    
      String  currency = (String)dtlRow.getAttribute("CurrencyCode");    // NULL POINTER EXCEPTION
    
      if ((currency == null) || ("AED".equals(currency)))
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateDateRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateRender", Boolean.FALSE);
      }
      else
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateDateRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateRender", Boolean.TRUE);
      }
      }
    

    In the controller:

    if((ADD_ROWS_EVENT.equals(event)) && "AdvTblRN".equals(pageContext.getParameter("source")) )
    {
      am.invokeMethod("createDetailRow",null);
      am.invokeMethod("initPVO");
    } //**End Add Row Button**
    else if ("currCodeChangeEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    {
      String eventRowSourceParam = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
      Serializable[] params = {eventRowSourceParam};
        Class[] paramTypes    = {String.class};
      am.invokeMethod("handleCurrencyChangeEvent",params, paramTypes);
    }
    

    3. Why do you call initPVO when it is clicked on the Add line? Are you calling not just in the PR?

    You could call it once in the PR and let. When you call it PR, you may need to remove the handleCurrencyChangeEvent of this method call.

    See you soon

    AJ

  • Can someone help me with a step by step guide to add a "clickTAG" button on board animate? I looked everywhere online and can't seem to find anything, thank you.

    Can someone help me with a step by step guide to add a "clickTAG" button on board animate? I looked everywhere online and can't seem to find anything, thank you.

    Here.

    Re: Admins we can get an ad platform-specific sticky for banners of edge?

  • I created a pdf with blocks of text to fill out form. Is it possible to add a record button instead of having someone go to produce and record?

    I created a pdf with blocks of text to fill out form. Is it possible to add a record button instead of having someone go to produce and record?

    You can add a save button slot for your file, but not a button Save.

  • Customize the 'Add to Cart' button with CSS

    Hello

    Thanks in advance for any help here.

    I wanted to just replace the 'Add to Cart' button ugly by default with a nice version of CSS3. I can't find anywhere in the 'modulestylesheet' where I can recode it. I don't want to use an image either.

    Kind regards

    Damien

    Hi, I think you can add some CSS to the class name.

    Check here.

    Dropbox - 2014 the capture of screen-08 / 08 19.37.07.png

  • APEX - how to add a button to a page to run an oracle procedure

    I built a page of database with a display in a table on a database. The query table uses the user id to filter records. everything works very well.
    How can I add an independent button to the page that runs an oracle procedure when clicked.

    Create a button on your page to send the page. Now create a page process as follows:

    BEGIN
       your_proc_name;
    END;
    

    Make this process depends on what button and select above created button.

    Published by: Zahid Khan on May 26, 2011 15:32

  • Add a new button to the menu template?

    I'm new to Premiere Elements but and familiar with Adobe products. Basically what I want to do, is add a new button in the disc menu and more buttons 'Play' and 'Scène' already there. Is it so easy, I'm missing how to do this or it just cannot be done. And if it can't be done, are you kidding me? I can't add my own custom text or a button on a disc menu? Wow...

    When you set main Menu markers, they add an entry to the main Menu screen.

    See you soon,.
    --
    Neale
    Insanity is hereditary, get you your children

  • In the example LabVIEW Full featured, which makes the entry point button reappear?

    My question is this: what piece of LV code or invoke the node for the TS engine makes the entry Point button reappear when loading a file of sequence?

    Background:

    I inherited a modified version of Full Featured LabVIEW UI, which has been moderately modified (enough so this restart is not really an option, but it is still quite similar to use as comparisons for behaviors).  In addition, this code was started in LV2012/TS2012 and I'm migrating to LV2013/TS2013, but this behavior is consistent in both versions.

    Here is what I tried:
    I have found that when the command connect runs (see attachment), the button which is a TSUI. IButton control, SEAO is grayed out or hidden.  In the unmodified example user interface provided with TestStand, button is again displayed when loading a file of sequence.  The problem is that when I load a movie file in my code and click it before the race, the button does not reappear. In my code, I can run the sequence successfully by right click on the movie file and selecting run, so I don't think the sequence has an error, or the process model.

    Thanks in advance,

    Seth

    Seth,

    The entry 'options' of the ConnectCommand function controls this. On help page for this entry, you can see that there are options for "ignore enable" and "ignore visible." Or any of them may affect the functionality of the key entry point. You could try to make the options for both keys 0 and see if that fixes the problem. If this isn't the case, please let us know.

  • Add "microsoft answers" button on toolbar?

    Hello-

    is it possible to add a link/button "microsoft answers" to my toolbar?  I am running XP pro.

    Thank you very much!

    -susie margaret

    Hello
    Sorry for the bicentenary
    microsoft forums you want to open in > go to Favorites > go to add to the Favorites > click Add to Favorites bar works with ie 8 If this post can help solve your problem, please click the mark as answer check on this page it helps people who need quick access to answers THANKS AND GOOD LUCK

  • How to add a reset button in OPM 12?

    You need to add a reset button to 12 OPM. I am aware that it was easily possible in 10.4 Customizing VMS, however here, I want to add this button in each screen as well as on her multilingual text

    Hi there is two ways to do this: -.

    1. This can be done with the help of JavaScript by adding personalization of JS file.
    2. This can also be done with the help of the creation of a label on each screen as a custom control by adding a span/div with the class.  The text of the label can be easily translated using translation files.
      1. You can use the class and JQuery code to call the reset feature when click on this div/span tag.

    Thank you

    Kunal

  • How to change the Rectangles with buttons

    I'm working on this example that does not work correctly:

    public class test extends Application
    {
    
        private void init(Stage primaryStage)
        {
    
            Group root = new Group();
            primaryStage.setScene(new Scene(root));
    
            String pillButtonCss = DX57DC.class.getResource("PillButton.css").toExternalForm();
    
            // create 3 toggle buttons and a toogle group for them
            ToggleButton tb1 = new ToggleButton("Left Button");
            tb1.setId("pill-left");
            ToggleButton tb2 = new ToggleButton("Center Button");
            tb2.setId("pill-center");
            ToggleButton tb3 = new ToggleButton("Right Button");
            tb3.setId("pill-right");
    
            final ToggleGroup group = new ToggleGroup();
            tb1.setToggleGroup(group);
            tb2.setToggleGroup(group);
            tb3.setToggleGroup(group);
            // select the first button to start with
            group.selectToggle(tb1);
    
            //////////////////////////////////////////
    
            final VBox vbox = new VBox();
    
            final Rectangle rect1 = new Rectangle(300, 300);
            rect1.setFill(Color.ALICEBLUE);
            final Rectangle rect2 = new Rectangle(300, 300);
            rect2.setFill(Color.AQUA);
            final Rectangle rect3 = new Rectangle(300, 300);
            rect3.setFill(Color.AZURE);
    
            tb1.setUserData(rect1);
            tb2.setUserData(rect2);
            tb3.setUserData(rect3);
    
            group.selectedToggleProperty().addListener(new ChangeListener<Toggle>()
            {
                @Override
                public void changed(ObservableValue<? extends Toggle> ov, Toggle toggle, Toggle new_toggle)
                {
                    if (new_toggle == null)
                    {
                        //rect.setFill(Color.WHITE);
                    }
                    else
                    {
                        vbox.getChildren().addAll((Node[]) group.getSelectedToggle().getUserData());
                        //rect.setFill((Color) group.getSelectedToggle().getUserData());
                    }
                }
            });
    
    
            ///////////////////////////////////////////
    
    
            HBox hBox = new HBox();
            hBox.getChildren().addAll(tb1, tb2, tb3);
            hBox.setPadding(new Insets(20, 20, 260, 20));
            hBox.getStylesheets().add(pillButtonCss);
    
    
    
            vbox.getChildren().add(hBox);
            //vbox.getChildren().add(rect);
    
            root.getChildren().add(vbox);
        }
    
        @Override
        public void start(Stage primaryStage) throws Exception
        {
            init(primaryStage);
            primaryStage.show();
        }
    
        public static void main(String[] args)
        {
            launch(args);
        }
    }
    
    
    

    I want to create several Rectangles (or in which object or object) in which I want to store data. I want to spend the Rectangles (objects) that appear in front of the user by using the buttons. The example that I put in place does not work correctly. Can you tell me what is the right way to implement this?

    REF javafx 2 - How to change the Rectangles with buttons - stack overflow

    You have two problems:

    User data that assign you to each button switches are a node, not a [Node]. Thus, the cast will fail on line 43.

    When the selected toggle changes, you add another Rectangle to the vbox. You want to replace the rectangle that is in the vbox.

    Try

    vbox.getChildren () .setAll ((Node) group.getSelectedToggle () .getUserData ());

  • Video AutoPlay when you add the interactive button

    I'm having a problem with a video slide auto play when it is added an interactive button.

    The first slide of the project, I have an interactive index climbing to different slides. When he jumps to another slide video slide goes automatically into play, but when you add an interactive button to return to the home page video auto is more parts.

    I added the SS to display the index and video slide.

    Just a guess here, but generally a button has a built-in break. You should maybe check and adjust exactly where the break is underway.

    See you soon... Rick

  • Add to cart buttons do not work

    Hello and thank you for taking the time to read this message.

    I went into paypal and created add to cart buttons for each product. Then, paypal generated code to put into my dreamweaver. After you publish the site with all add to basket buttons on it, I tried clicking on add to Cart button to many different internet browsers / computers.

    Nothing happens. When I click on the button Add to cart on my site, nothing happens at all. It does not load, transfer or whatever it is, it says DONE.

    I would really appreciate it if someone could suggest a few things I could try to fix this. Again, I'm trying the paypal add to cart buttons in dreamweaver.


    Thanks in advance.

    Holy, Batman paragraph tags.

    Add to cart is a form. The form that works doesn't work because the entire form tag is pasted into the page:

    method https://www.paypal.com/cgi-bin/webscr"="post">"https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/BTN/btn_cart_LG.gif" border = "0" name = "submit" alt = "PayPal - the safer, easier way to pay online how!" > https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif "width ="1"height ="1">

    The other images do not work because they are just images. It is not a current form tag to process form input in the basket.

    https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/BTN/ btn_cart_LG.gif"border ="0"name ="submit"alt ="PayPal - the safer, easier way to pay online how!">
    https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/SCR/ pixel.gif"width ="1"height ="1">

    Solution: paste the entire PayPal form tag adds to the cart button generator.

Maybe you are looking for

  • Ios9.3 ipad

    I updated my iPad today (ios9.3) and when I opened it, he wrote that he could not reach the server and the same when I tried with Itunes.

  • Device of Storage Pool is degraded and data security is threatened.

    When I get this message, how do I know which drive has problems? Thank you Carl

  • Pushing the control captions into a Subvi

    Hi all! I'm using LabVIEW 2015. I'm working on a Subvi, which takes a variable and checks if it is between the upper and lower limits. Yes, I know, there is a built-in "range?" function, and if you look at my VI exactly what I use. The difference is

  • How can I fix my window automatic updates, it won't work?

    on my windows Security Center can't update, my automatic updates to turn on.  Help, please

  • Computer will not "wake up".

    Last 48 hours, when not to use the computer for 10 minutes or so, screen passes in dark energy, but don't come to a passage from the mouse or touch any key and must literally shut down and restart, go directly to the "restoration of windows" and back