Customer Portal

Get Involved. Join the Conversation.

Topic

    Narendra Muttineni
    Is there any way we can rename Products in the UI but not in...Answered
    Topic posted June 12, 2019 by Narendra MuttineniSilver Crown: 22,500+ Points 
    58 Views, 3 Comments
    Title:
    Is there any way we can rename Products in the UI but not in Service cloud DB?
    Summary:
    Is there any way we can rename Products in the UI but not in Service cloud?
    Content:

    Hi,

    I am trying to rename Products in the Chat Launch form(only UI) but would like to continue with the old values for Agent desktop and in DB. Is there any way we can rename Parent level Products only in the front end ?

    Thanks in advance for your help !!

    Thanks,

    Narendra

    Version:
    18D

    Best Comment

    Shiloh Madsen

    As I tell clients all the time, anything is possible, time and money being available ;)

    I can think of a way to get at a solution via sidelining it by setting up an interface with a different language and setting the names you want for the language for the products. Then you'd use that one as your CP, but that likely has all kinds of other admin headaches associated with it. A secondary way to do this would be to extend the productcategory picker widget. Once you've done this, you'll want to take the controller and read your alternate names from...somewhere, either a custom business object with id mapped to front end name or to a csv of names to ids stored in a custom message base. Personally id opt for the former. Its more overhead to get to in code, but more maintainable in the long run. A much more terrible solution would be to just hard code the different names in the controller. While this would work, it would require a coder to update moving forward. A CBO could have a workspace that lets the users change the front end names on the fly and then  your controller would pull those names and use them after matching to an id. It also gives you the option of only changing those names whose ids are in your CBO, your else block of the controller would say (essentially) if not found, use the default name. 

    Comment

     

    • Sebastiaan Draaisma

      Hi Narendra

      No, I do not believe this is possible, at least not through a configuration. Maybe (only maybe) this is possible through a .Net add-in.

      An alternative could be a custom field (menu type) that you map through business rules or a HTML version of the product selection that you show in a browser component through js API and where you basically perform a string replace.

    • Shiloh Madsen

      As I tell clients all the time, anything is possible, time and money being available ;)

      I can think of a way to get at a solution via sidelining it by setting up an interface with a different language and setting the names you want for the language for the products. Then you'd use that one as your CP, but that likely has all kinds of other admin headaches associated with it. A secondary way to do this would be to extend the productcategory picker widget. Once you've done this, you'll want to take the controller and read your alternate names from...somewhere, either a custom business object with id mapped to front end name or to a csv of names to ids stored in a custom message base. Personally id opt for the former. Its more overhead to get to in code, but more maintainable in the long run. A much more terrible solution would be to just hard code the different names in the controller. While this would work, it would require a coder to update moving forward. A CBO could have a workspace that lets the users change the front end names on the fly and then  your controller would pull those names and use them after matching to an id. It also gives you the option of only changing those names whose ids are in your CBO, your else block of the controller would say (essentially) if not found, use the default name. 

    • Narendra Muttineni

      Yes, you are right!! I also follow the same principle "anything is possible".

      Extended custom widget and modified the controller to rename the products/categories. In getData() we need to write the logic.

      Thanks,

      Narendra