2/23/2025 4:59:29 PM
|
|
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.
|
|
|
|
PublicAccessCode defaulting to internal only on web tickets
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..... |
|
|
|
Re: PublicAccessCode defaulting to internal only on web tickets
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..... |
|
|
|
Re: PublicAccessCode defaulting to internal only on web tickets
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. |
|
|
| |
|
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!
|
|
|
|
|
|
|
|