Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: PublicAccessCode defaulting to internal only on web tickets
Andy Norris
Posts: 39
 
PublicAccessCode defaulting to internal only on web ticketsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 08 2:10 PM
The customer portal will, out of the box, display all tickets, regardless of their associated PublicAccessCode. I managed to work around this by editing the web portal groups and adding some custom code to the lookup queries to ensure that only the customer-visible tickets are ever displayed.

Now, however, I've discovered that the web portal defaults the publicaccesscode to the "Internal Only" value, so once a customer submits a ticket, they can't see it after they navigate away from the initial display of the ticket.

I've written a business rule that is attached to the onload action of the form where you add a new ticket, and I've confirmed that the business rule is working. However, no matter what I seem to put in that field (itemid of the picklist item, the text of the picklist item, etc.), the system is still storing the "Internal Only" picklist item id.

Can someone point me in the right direction as to why this is doing this? Is there some default property value in the entity somewhere? I don't understand why this isn't as simple as setting the field to a value. I've done the same on other fields and had no issues.....
[Reply][Quote]
Andy Norris
Posts: 39
 
Re: PublicAccessCode defaulting to internal only on web ticketsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 08 1:35 PM
So, using Reflector I discovered that the default OnBeforeInsert event for the Ticket entity sets this property to the Internal Only status using the below line:
ticket.PublicAccessCode = TicketHelperClass.GetPicklistItemIdByName("Ticket Activity Public Access", "5");

So, I just wrote an external assembly and attached to the Post-Execute step of the OnBeforeInsert step which simply does this:
ticket.PublicAccessCode = TicketHelperClass.GetPicklistItemIdByName("Ticket Activity Public Access", "1");


Another question that came up though was this - when referencing my external assembly, do I have to manually modify some file under the App Architect to tell it to copy my custom DLL to the deployed portal's bin folder? I have to manually copy that file at present, and it gets deleted each time you redeploy.....
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: PublicAccessCode defaulting to internal only on web ticketsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 08 2:51 AM
Yes - you need to put your DLL/assembly file into the VFS, this time it will deploy when you click deploy in AA. Expand Portal Manager\Sage Saleslogix\Support Files, and right click on the Bin folder and choose to Add Existing File. This will put your class file/dll into the database so will always deploy with your application.
[Reply][Quote]
Andy Norris
Posts: 39
 
Re: PublicAccessCode defaulting to internal only on web ticketsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 08 2:19 PM
Ah, yes, of course. Silly me. Thanks, Nick!
[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): 2/23/2025 5:25:46 PM