Oracle-Apex modal dialog display last inserted row - oracle-apex

I made page for editing and adding clients, when I click on button, I get a modal dialog with filled fields..
Also I have link on ID column which opens same dialog, where I can edit existing row.
I want to get empty fields when I click on "ADD" button.

On the ADD button set the attribute to clear cache of the modal dialog page nr.

In your report, navigate to the ADD button definition. In the Property Editor, click Target to verify Page and Clear Cache are both set to the dialog page number.

Related

APEX 5.1.3 -- Clicking the Edit Button in the Report Page Shows a Form for Inserting a New Record

I am using APEX 5.1.3 to build a new desktop web application. I created a pair of Report and Form pages, and then ran the application, entered the report page. The data in the table was shown correctly, and each row contained a pencil icon at the leftmost column -- all looking fine.
However, when I clicked on the pencil icon to enter the Form page, instead of showing the record and let the user update the record, all columns became blank. The Save button was not there, instead the Create button appeared. This became the same behavior as clicking the Create button in the report page. What did I do wrongly, and how could I correct this behavior?
Seems I can find the answer after clicking the APEX edit page here and there...
I go to the edit page of the Report Page, on the left side, under Content Body, select Attributes.
On the Right side, under Link, click Target.
A new window appears at the center. I found the page no. is correct, but the Set Items aren't. Hence I click on the ^ button to select the correct column on the left, and values on the right. Click OK and then Save and Run the page. The problem is then corrected.
The reason for the problem is that for whatever reason, my original version has a value item which does not exist at all. Hence the data can't be brought to the form page when the edit button is clicked in the report page.

Sitecore Remove Button

I have a "Slide Show" control and I'd like to remove the first "X" button in the tool bar of the control. I have checked .ascx and .ascx.cs file to see if there is any related code, but nothing.
I think these buttons are from Core DB and I don't know where I can remove or hide this "X" button in Sitecore.
Could you help me, please?
Find Slide Show sublayout in your Sitecore tree.
Scroll to Editor Options section and remove Delete from the Page Editor Buttons field.

how to set the rights for placeholder ribbon

beginner question for sitecore about settings the right.
So I have an item is open in the page editor.
The renderings on the page has bunch of icons on the ribbon. One of them called 'select the parent element (element name)'.
In my case when I click on it, I am presented with the placeholder with button 'add here' and the ribbon with some component buttons that a user can use to add the controls.
So, QUESTION:
"how I add access to the button on that ribbon for certain role? Where do I set it up? "
For some certain role that placeholder's ribbon is completely empty, including there is no button 'select the parent element' even though
i know there is a parent element.
thank you very much for help,
HF
Here are the screenshots (no icons on the placeholder ribbon, and the user's rights:
enter image description here
And here is how that looks for the admin:
All the settings for the Page Editor are held in the Core database. So in the Sitecore Desktop, switch to the core database and open up the Content Editor.
Navigate to : /sitecore/content/Applications/WebEdit
This item holds the items that make up the page editor. To edit the ribbon menues, go to:
/sitecore/content/Applications/WebEdit/Ribbons
I don't remember seeing that particular button in the Core database, so this is likely a built-in feature that requires the user to have one of the built-in permissions.
The first thing I would check is that Designing is turned on. Have the user go to the 'View' tab in Page Editor and make sure they have checked the 'Designing' checkbox.
If that doesn't work, it sounds like the user you have does not have design access to the page. I would examine the inherited roles using the User Manager and check if they have the Sitecore Designer role inherited.
It is possible they just need to be provided the correct role in the system so that they can access the buttons.
Have you tried the "Sitecore Client developing role"?
Also, for the blue arrow drop list location, in order for the rendering button to show up in that location, you have to check whether the button in the webedit folder under core database(/sitecore/content/Applications/WebEdit/Default Rendering Buttons). The Type field needs to be "Common" in order to show up in the blue arrow droplist.
Example can be the "Edit related item" (/sitecore/content/Applications/WebEdit/Default Rendering Buttons/Edit related item) shows up in the blue arrow droplist.

Sitecore: Programmatically Exit Edit Mode in Page Editor

When in Sitecore's Page Editor mode clicks the Edit button, I have a DIV's style set to
top: 0;
so that it appears on top of the Page Editor buttons (Save, Save and Close, Insert, etc..). This div prevents the content editor from using the normal Page Editor buttons and forces them to use the custom Save, Save and Close, and Close buttons that I have added to the DIV.
Is there a way to programmatically exit Edit mode whenever they click on my custom Close or Save and Close button? I do not want to log them out of the Page Editor (just exit them out of edit mode). I only have 1 page where I am doing this, so I would rather not get into changing configurations in Sitecore to achieve this.
Check out this post: In Sitecore, how to change or set PageMode
It looks like you can do:
Context.Site.SetDisplayMode(Sitecore.Sites.DisplayMode.Normal, Sitecore.Sites.DisplayModeDuration.ResetAfterRequest);
Or, you can add sc_mode=normal or sc_mode=preview to the URL's query string.

deactivate an item in the file button "jewel" in crm 2011

is it possible to hide or deactivate a menu item in the file button called also jewel button? I´m able to hide completely the file button with javascript, but I want to hide or disable only some menu items in the flyout menu.
Thank you in advance
You will find these Jewel buttons within the application ribbon. You can choose to hide these buttons in your customizations.xml via some hide HideCustomActions. The names of some of the Jewel buttons you will find are:
- Mscrm.Jewel.NewMenu.NewActivity
- Mscrm.Jewel.NewMenu.NewRecord;
For example, within your appointment ribbondiffxml section within your customizations.xml, you could have a HideCustomAction like:
<HideCustomAction HideActionId="CustomHideAction.JewelMenu.NewActivity" Location="Mscrm.Jewel.NewMenu.NewActivity" />