Forum Stats

  • 3,840,001 Users
  • 2,262,557 Discussions
  • 7,901,121 Comments

Discussions

page item in create section

Hamp
Hamp Member Posts: 94 Red Ribbon
edited Apr 9, 2018 8:24AM in APEX Discussions

Hello ,

is there anyway to have a page item behind the create button? I want to have switch there so I can disable validation before submit

create.png

thanks

Hemp

Tagged:

Best Answer

  • fac586
    fac586 Senior Technical Architect Member Posts: 21,103 Red Diamond
    edited Apr 9, 2018 4:38AM Answer ✓

    1. Create a copy of the Modal Dialog page template. This is required because the built-in template does not support grid layout in the Dialog Footer.

    2. Edit it,  modifying the Dialog Footer Display Point, by checking the Grid Support checkbox, and setting Maximum Fixed Grid Columns to 12.

    3. Set the dialog page to use the new template.

    4. Create a new static content region in the Dialog Footer position, with region template Standard.

    5. Set the region's Template Options to:

    • General: Use Template Defaults
    • Header: Hidden
    • Style: Remove Borders
    • Item Width: Stretch Form Fields

    6. Create the Cancel, Delete, Save, and Create buttons in the new region with the following properties:

    • Button Position: Region Body
    • Column CSS Classes: t-Form-inputContainer
    • Template Options: Width: Stretch

    7. Create the Switch item in the new region.

    8. Set the button and item layout properties:

    • Cancel
      • Start New Row: Yes
      • Column: 1
      • Column Span: 2
    • Delete
      • Start New Row: No
      • Column: 4
      • Column Span: 2
    • Save
      • Start New Row: No
      • Column: 6
      • Column Span: 2
    • Switch
      • Start New Row: No
      • Column: 8
      • Column Span: 3
      • Label Column Span: 1
    • Create
      • Start New Row: No
      • Column: 11
      • Column Span: 2

Answers

  • fac586
    fac586 Senior Technical Architect Member Posts: 21,103 Red Diamond
    edited Apr 5, 2018 12:45PM
    Hamp wrote:is there anyway to have a page item behind the create button? I want to have switch there so I can disable validation before submit
    create.png

    What type of page and region is this?

    Which page/region templates and template options are being used?

  • Hamp
    Hamp Member Posts: 94 Red Ribbon
    edited Apr 5, 2018 1:07PM

    it is a modal dialog page with static content region and I want to have switch item there;

    BTW, is there any bug with modal dialog page on 5.1 and switch item? no matter how much I click on the yes or no the value is not being set in the session state I deleted the item 10 times and replaced it with new but still the same

  • fac586
    fac586 Senior Technical Architect Member Posts: 21,103 Red Diamond
    edited Apr 5, 2018 1:28PM
    Hamp wrote:it is a modal dialog page with static content region and I want to have switch item there;BTW, is there any bug with modal dialog page on 5.1 and switch item? no matter how much I click on the yes or no the value is not being set in the session state I deleted the item 10 times and replaced it with new but still the same

    Suggest you demonstrate the problem on apex.oracle.com and share guest developer credentials for the workspace here so we can investigate this directly.

  • Pierre Yotti
    Pierre Yotti Member Posts: 4,040 Bronze Crown
    edited Apr 5, 2018 1:45PM

    Can you reproduce it online? We will have a look at it

    Gesendet von Yahoo Mail auf Android

    Am Do., Apr. 5, 2018 at 19:08 schrieb community-admin<[email protected]>:

    |

    |

    page item in create section

    reply from Hamp in Oracle Application Express (APEX) - View the full discussion

    it is a modal dialog page with static content region and I want to have switch item there;

    BTW, is there any bug with modal dialog page on 5.1 and switch item? no matter how much I click on the yes or no the value is not being set in the session state I deleted the item 10 times and replaced it with new but still the same

    Reply to this message by replying to this email, or go to the message on Oracle Community

    Start a new discussion in Oracle Application Express (APEX) at Oracle Community

    Following Oracle Application Express (APEX) in these streams: Connections Stream

  • fac586
    fac586 Senior Technical Architect Member Posts: 21,103 Red Diamond
    edited Apr 8, 2018 11:24AM
    Hamp wrote:is there anyway to have a page item behind the create button? I want to have switch there so I can disable validation before submit
    create.png

    Something like this (select the Button/item layout option)?

  • Hamp
    Hamp Member Posts: 94 Red Ribbon
    edited Apr 9, 2018 3:10AM

    yes that's exactly what I want

  • Pierre Yotti
    Pierre Yotti Member Posts: 4,040 Bronze Crown
    edited Apr 9, 2018 3:16AM

    you can use the button Container template to achieve that

    Bildschirmfoto 2018-04-09 um 09.15.52.png

  • fac586
    fac586 Senior Technical Architect Member Posts: 21,103 Red Diamond
    edited Apr 9, 2018 4:38AM Answer ✓

    1. Create a copy of the Modal Dialog page template. This is required because the built-in template does not support grid layout in the Dialog Footer.

    2. Edit it,  modifying the Dialog Footer Display Point, by checking the Grid Support checkbox, and setting Maximum Fixed Grid Columns to 12.

    3. Set the dialog page to use the new template.

    4. Create a new static content region in the Dialog Footer position, with region template Standard.

    5. Set the region's Template Options to:

    • General: Use Template Defaults
    • Header: Hidden
    • Style: Remove Borders
    • Item Width: Stretch Form Fields

    6. Create the Cancel, Delete, Save, and Create buttons in the new region with the following properties:

    • Button Position: Region Body
    • Column CSS Classes: t-Form-inputContainer
    • Template Options: Width: Stretch

    7. Create the Switch item in the new region.

    8. Set the button and item layout properties:

    • Cancel
      • Start New Row: Yes
      • Column: 1
      • Column Span: 2
    • Delete
      • Start New Row: No
      • Column: 4
      • Column Span: 2
    • Save
      • Start New Row: No
      • Column: 6
      • Column Span: 2
    • Switch
      • Start New Row: No
      • Column: 8
      • Column Span: 3
      • Label Column Span: 1
    • Create
      • Start New Row: No
      • Column: 11
      • Column Span: 2
This discussion has been closed.