Policy Automation for B2C Service

Get Involved. Join the Conversation.

Topic

    Sheri Hastings
    How to Remove the 2nd OPA Scroll Bar when using OPA in...
    Topic posted August 25, 2016 by Sheri HastingsSilver Medal: 2,000+ Points, last edited August 26, 2016 
    168 Views, 4 Comments
    Title:
    How to Remove the 2nd OPA Scroll Bar when using OPA in Oracle Service Cloud
    Content:

    I am posting this for those of us who are not HTML developers but who need to know how to remove the 2nd OPA scrollbar when OPA is running inside of Service Cloud. . This worked for me but  if any HTML developers are reading this and there is a better way to do it, that would be useful also,

    My customer,  was disturbed that there are two scroll bars, one for OPA and one for Service Cloud. Obviously I could just move some of the questions to additional screens but he did not want to do that either.
    I knew I would have to modify the OPA Widget but not being an HTML developer I was not sure exactly how.

    I researched it and what I ended up doing was modifying the iframe height in the view file  which worked just fine for my particular interview,

    I think I could also have added a noscrolling parameter but that is not supported in later HTML. There is also an overview parameter I also could probably have added but for me this simple height change was easier.

    Here is exactly what I did.
    1. Opened the following file in webdav:
    development/widgets/custom/OPA/OPAWidget/1.0/view.php
    2. changed iframe height from 600 to 1000

    1000  was enough to fix the double scrolls issue for my particular interview.

     

    Version:
    Service Cloud, Customer Portal, Connect
    Image:
    Code Snippet:

    Comment

     

    • Erica (Leep) Anderson

      Thanks for taking the time to proactively share this problem and the solution that you came up with, Sheri. And nice job, I might add! We appreciate you sharing this as it creates valuable content to help other members who may encounter the same challenge.

      Best,

      Erica, Community Manager

    • Scott Berry

      The latest example OPA Widget supports configuring the height and width of the iframe on a per-page basis via parameters height and width, i.e. in a specific page's php call to the widget:

      <rn:widget path="custom/opa/OPAWidget/"
      web_determinations_url="https://[host]/web-determinations"
      policy_model="StudentBenefits"
      width="90%"
      height="1000px"
      locale="en-US"/>
      

       

      However you may want to change the heights and widths globally. If you fix the value in view.php then page-defined parameters (as above) will no longer work. Instead, change the default values specified in the info.yml file, i.e.

        width:
          name: Width
          type: string
          description: The width of the iframe hosting the interview. This is a standard html
            style value, i.e. 700px or 90%
          default: "90%"
          required: false
        height:
          name: Height
          type: string
          description: The height of the iframe hosting the interview. This is a standard html
            style value, i.e. 700px or 90%
          default: "1000px"
          required: false

       

      Hope this has helped
      -Scott

    • Danette Beal

      Thanks Scott for the additional info! I definitely appreciate you chiming in with your Oracle expertise!!

      Regards,

      Danette, Community Manager

    • Leomar Cortez

      Hi Scott,

      What is the path for this: Is this in dav?

      <rn:widget path="custom/opa/OPAWidget/"
      web_determinations_url="https://[host]/web-determinations"
      policy_model="StudentBenefits"
      width="90%"
      height="1000px"
      locale="en-US"/>