Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Save and Clear Button on a Dialog Workspace
Minnardi Hendra
Posts: 4
 
Save and Clear Button on a Dialog WorkspaceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jun 09 6:18 AM
Hi,

Have anyone successfully created a save and clear button for a form that is called from a dialog workspace ?
I tried any options that I can or any combination but failed.
If anyone can help me or point me to the right direction that would be great.

Thank You in advanced.
[Reply][Quote]
Johnson Mathew
Posts: 15
 
Re: Save and Clear Button on a Dialog WorkspaceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jun 09 10:50 AM
I am not sure whether I completely understood your question, but if you are trying to add a "Save" button and "Save" the changes on a form, you would proceed as below:

1. Open your form (Packages > SalesLogix Application Entities > Your Entity > Forms >Your Form
2. In the properties window, you should be able to find an option "Toolbar". (You should make sure that the form itself is selected). Click on the ellipses button in the Toolbar property.
3. In the toolbar editor that appears, click on the 'Right' node. Now click "Add" and select "Button".
4. Change the important properties like Caption, ButtonType, ControlID etc. Change Caption to "Save", button type to "Icon"and select an appropriate Save image for the Image property. Change ControlID to something like "cmdSave".
5. Click on OnClickAction, expand it and select Action Name as 'Business Rule'. Change the 'Business Rule' property to "Save". Change "Entity Type" to your entity of interest. Change "Dialog Result" to DialogOK.
6. Save the changes, build and redeploy.

Now your form should be able to save the changes. To add Cancel, repeat the same steps and do the changes accordingly. In step 5, select OnClickAction as "No Action" and change DialogResult to "DialogCancel".

Happy Coding

[Reply][Quote]
Minnardi Hendra
Posts: 4
 
Re: Save and Clear Button on a Dialog WorkspaceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 09 11:16 AM
Hi Johnson,

Thank you for your response.
That will give me a normal save and after that close the dialog form if I understand correctly.
Do you know how to create a save and clear the page and enter a new one without re-open the form.
For example you have a product datagrid and you have the plus sign that will pop-up the insert screen.
But if you have 2 or more products to put in, you do not want to hit the plus sign and add the product and save and hit the plus sign to bring up the same form.
So I am just wondering if there is a way to save the product you just entered and clear the same form and enter the second one and so-on and until you are at the last product, hit save and close the form.

Thanks
[Reply][Quote]
Johnson Mathew
Posts: 15
 
Re: Save and Clear Button on a Dialog WorkspaceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 09 11:59 AM
If you can have a close look at the "Insert Contact/Account" page, you can find a similar implementation. In the top menu, try New>Account/Contact. You can see 3 options for Save (Save, Save & New, Save & Clear).
Go to Portal Manager>Sage SalesLogix>Pages. Now, double-click on "Insert Contact/Account". In the "Smart Parts" select "Insert Contact (Custom)". Click on "Edit" in the right side. You can see the contents of "InsertContacts.ascx". You can find the following code there:

protected void cmdSaveNew_ClickAction(object sender, EventArgs e)
{
IContact contact = BindingSource.Current as IContact;
if (contact != null)
{
object[] objarray = new object[] {contact, contact.Account};
EntityFactory.Execute("Contact.SaveContactAccount", objarray);
Response.Redirect(string.Format("InsertContactAccount.aspx?modeid=Insert&accountId={0}", contact.Account.Id));
}
}

Try if you can mimic the same functionality in your entity.
[Reply][Quote]
Minnardi Hendra
Posts: 4
 
Re: Save and Clear Button on a Dialog WorkspaceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 09 12:25 PM
I looked at that code for that form also.
The issue that I am currently having using that code is it does not allow me to redirect, since my form is getting called on Dialog Workspace instead of mainForm.
Or probably its just me who doesn't know how to use the code
[Reply][Quote]
Sebastian Walter
Posts: 28
 
Re: Save and Clear Button on a Dialog WorkspaceYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Aug 11 7:27 AM
fiogf49gjkf0d

We're using SLX 7.53. I've got a form with a Button on it which calls an "Insert Child Dialog Space" Form. On This Form I have two lookups an a picklist. One of this two lookups and the picklist are flagged as "required". I added two Buttons. One with DialogOK and the other with DialogCancel. Now when I try to click the Cancel Button the form isn't closing but signs me that my two controls are required. If I enter some Information it works. If there is no Information I have to close with the Close-Button.


Is there any Chance to get this? Some Webhotfix?

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 5:33:57 PM