BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  How make the content of a  field clickable

    Posted 17 days ago

    Hello community,
    I need to make the content of a  field clickable.
    This field contains a URL, and I want the URL to open in the browser when the user clicks on it or focuses on it.
    I used field focus wiring (see attached image), but I can't get the value, only the ID.
    Do you have any suggestions?

    field focus wiring


    ------------------------------
    Mansour SOW
    ------------------------------


  • 2.  RE: How make the content of a  field clickable

    Posted 15 days ago

    Hi Mansour,

    I can't tell all the details of your scenario, but it looks like you are using a table and the URL is in the data of each row.  I created an example using those assumptions.  I have a Business Object defined as:

    I have a CSHS with a variable set to the type above, and as a list, with the "link" property set to values such as "https://www.google.com/".  When configuring the table that renders this list of complex objects, I set the third column to be rendered as "custom":

    In doing this, the "On custom cell" event will get called.  In here, you can wrap the URL in a hyperlink:

    This results in a link being rendered, and clicking on the link will open the URL in a new tab in the browser:

    Hope this helps,

    Grant.



    ------------------------------
    Grant Taylor
    ------------------------------



  • 3.  RE: How make the content of a  field clickable

    Posted 15 days ago
    Hello Grant,
    Thank you for your reply.
    I use IBM Case Manager with adapter scripts; I don't use coaches.


    ------------------------------
    Mansour SOW
    ------------------------------



  • 4.  RE: How make the content of a  field clickable

    Posted 15 days ago

    Hello. Just to confirm, you are on a classic FileNet process task (aka work item) page, correct? That is what I see in the background of the screenshot but need to make sure as the solution might be different on a case details page.



    ------------------------------
    DAVE PERMAN
    ------------------------------



  • 5.  RE: How make the content of a  field clickable
    Best Answer

    Posted 15 days ago
    Edited by Mansour SOW 14 days ago

    Hello again!

    In your Script Adapter that is wired to the focus event, try this:

    debugger;

    alert(this.page._payload.caseEditable.caseObject._properties.CW_Overview.value);

    replacing my property ID (CW_Overview) with yours. This works for both case details and process task pages since the caseEditable is part of both payloads. Note that this returns you the original property value so it will work as long as the property is not editable. If it is, you need a more advanced approach where you get access to the coordination object.

    To access a process work item data field value when opening a task page, check out the workItemEditable member at the same level as the caseEditable.

    I bet you can't wait to update your environment to BAW so you can take advantage of Client-side Human Service (CSHS) pages and the cool example Grant suggested above. They can be used as a replacement for Case Add/Case Details pages even when your classic solution still uses FileNet processes (and even for a specific role). BAW process task UIs always use the same CSHS UI framework.

    ------------------------------
    DAVE PERMAN
    ------------------------------



  • 6.  RE: How make the content of a  field clickable

    Posted 14 days ago

    Thank you for your response and your promptness.
    I followed your suggestion and it worked.
    Thank you very much.



    ------------------------------
    Mansour SOW
    ------------------------------