2/23/2025 3:57:15 AM
|
|
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!
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.
|
|
|
|
row of doubts 
Posted: 28 May 08 2:26 AM
|
hi
I have some row of doubts regarding this sage.
1.Can i Open Working folder of Application architect in visual studio2008.
2.Is it possible to edit the sage application project in visual studio2008 and do the operations like Build,Debug and Run the sage application in Visual Studio2008.
3.Whether can i write ActionEvents for a button click in Application Architect for ASPX page,which is present in Portal Manager --->SageSalesLogix---->Pages--->ASPX pages.
Ulaga |
|
|
|
Re: row of doubts 
Posted: 28 May 08 5:41 AM
|
Hi,
Not sure about 1, but 2 is definitely possible. Deploy your website, then in VS, use the open Web Site option, and browse to your deployment directory. You will now be able to debug the app.
Not sure what you mean by 3). Do you just mean add a URL to a button? If so then yes...
Nick |
|
|
|
Re: row of doubts 
Posted: 28 May 08 6:01 AM
|
Thanks Nick, For question no:2 I am able to deploy on VS2008,but can i build here itself and run it by pressing Run(F5).Whether this will affect Application Architect.
For Question no:3 In Application Architect, mostly in SalesLogix Application Entities Folder only we are creating forms and writing action events for the controls defined on it. In Context Menus we are refering the aspx page - For this aspx page can we write action events
Ulaga |
|
|
|
Re: row of doubts 
Posted: 28 May 08 6:22 AM
|
Doing 2 doesnt affect anything in App Architect - once deployed the website and application is then totally outside the realms of App Architect, so any changes you make to it etc. will not get into the main app in App Architect. To make changes to the actual code held in SLX you would have to make the change INSIDE app architect. Or make the change in VS and copy your code into the relevant page in APp Architect...
Sorry still dont quite know what you are asking in 3) SOrry!! |
|
|
|
Re: row of doubts 
Posted: 28 May 08 6:57 AM
|
Question No:2 How to Copy the code into App Architect. Question No:3 how to programmatically control tabs from usercontrol. Eg:- i have 5 tab controls in aspx page.In first tab i placed a next button.If i click the next button,it should go to second tab.These 5 tab controls contains user controls(i.e ascx pages).
Ulaga
|
|
|
|
Re: row of doubts 
Posted: 28 May 08 7:25 AM
|
2) This will only work with Custom Smart Parts as Quickforms are an XML configuration fiel that would not be possible to paste over in App Architect. So open the .ascx for your custom smart part, select all and copy. Then in App Architect open the custom smart part, and paste in your code, simple as that. FYI Custom Smart Parts are the pages that are purely code. Quickforms are the ones you can drag and drop controls onto visually. I find it useful to firstly create a Quickform (using the GUI to place all the controls etc.), take the code (by deploying, then looking at the relevant .ascx folder SLX will create and deploy, which is usually in C:\inetpub\wwwrooot\slxclient\....smartparts\acount etc.) and then create a new Custom Smart Part for it, as I question the flexibility of Quickforms. They are fine for simple things but anything more complex I find way easier to manipulate in ASP.NET in a custom smart part. If you dont know how to bring the page back in as a Custom Smart part, please chekc the help file, as I believe its in there.
3) Yes you can manipulate controls (tabs)....here is an excerpt from an FAQ doc I received a while back:
This is not definitive but should help....
***/BE|GIN PASTE
How do I access/control the tab workspace at runtime?
Like all Web workpsaces, the Tab workspace is a Web Server Control and can be controlled through code. You can access it through the CAB infrastructure: this.PageWorkItem.Workspaces["TabControl"]; (Note that "TabControl" is the ID of the workspace in the markup of the masterpage.) It can also be found by looking through the Controls collection of the Page.
The API reference contains all of the properties and methods, but here are a few that might be interesting to a developer: • Show() - use this method to add Smart Parts (tabs) to the workspace. • Hide() - use this method to remove a Smart Part from the workspace. • IncludeMiddlePane - use this boolean property to include a "middle pane" area in the page for the user to display a tab in. • IncludeMoreTabsTab - use this boolean property to include a "More Tabs" tab. • DefaultVisibleTabCount - use this property to set the number of tabs that will be included in the tabstrip. The rest of the tabs will be included in the "More Tabs" tab. Note: this property only applies if IncludeMoreTabsTab is set to true. • OverrideActiveTab - use this property to programatically open a specific tab. Set the value of this property to the ID of the Smart Part you want displayed. Make sure this is set early in the page lifecycle, such as Page_Load. • There are also several style related properties to control the visual display of the tabs.
**/ END PASTE
Let me know if that helps - I know my answers are a little vague but got quite a lot on today  |
|
|
|
Re: row of doubts 
Posted: 28 May 08 10:11 AM
|
Thanks Nick Realy your spontaneous answers helped me a lot!!! Eg:- In guestdetails ascx control i placed one next button.(my requirement is when i press next button it should go to next tab(i.e guestpayment).
For that i write a codesnippet in loadactions of guestdetails ascx control:- Sage.Platform.WebPortal.Workspaces.TabWorkspace objGuest=new Sage.Platform.WebPortal.Workspaces.TabWorkspace(); objGuest.ID ="TabControl"; objGuest.OverrideActiveTab = "GuestLeaseInfo";
If i give this alone it works perfectly.
But my requirement is when i press next button only it should go to next tab.So in next button,i choose OnClickAction property and wrote the same code. But it is not working.
I am Hanged on this Nick.
Ulaga
|
|
|
|
Re: row of doubts 
Posted: 28 May 08 10:34 AM
|
No problem ! I will admit I have yet had to do the tab switching thing - but what I would do in this instance is open the website in VS and step through the code to see exactly what its doing, and at each stage have a look at the TabWorkSpaces properties...
I would expect what you have to done to work - but admittedly I dont know the Workspaces area well enough!! |
|
|
|
Re: row of doubts 
Posted: 28 May 08 10:38 AM
|
Sorry, just read the FAQ a bit closer:
OverrideActiveTab - use this property to programatically open a specific tab. Set the value of this property to the ID of the Smart Part you want displayed. Make sure this is set early in the page lifecycle, such as Page_Load.
Looks like this will not be possible on a click event, it is for an earlier event such as page_load. I guess it would be possible when they click next to reload the page and change tab. But this would look terrible 
It may be that this Workspaces area may not do what you are looking for - maybe take a look through its properties in intellisense in VS and see if there is a better one to use... |
|
|
|
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!
|
|
|
|
|
|
|
|