Visual Builder

Get Involved. Join the Conversation.

Posts

  • Nazeer Anantha
    Conditional Mapping in Rest API URL ParamsAnswered3
    Topic posted November 28, 2019 by Nazeer AnanthaBlue Ribbon: 750+ Points, tagged Layout, REST, Services, UI, Validation, Web 
    Title:
    Conditional Mapping in Rest API URL Params
    Summary:
    Conditional Mapping in VBCS
    Content:

    Hi Team,

    I am trying to pass the conditional value in REST API URL Params Mapping.

    Can you please let me know how can I achieve this or provide syntax.

    below is the condition, which I am trying to achieve.

    if($page.variables.ChequeNumber == "undefined")
    {
      "{checkno}"
    }else{
      $page.variables.ChequeNumber
    }

     

    attaching the screenshot for more info.

    Thanks,

    Nazeer.

    Image:
  • Neha Sharma
    Service Connection : does not contain any suitable objects7
    Topic posted November 22, 2019 by Neha SharmaGreen Ribbon: 100+ Points, tagged REST, Services 
    Title:
    Service Connection : does not contain any suitable objects
    Summary:
    "does not contain any suitable objects"
    Content:

    Hi,

    I have created a service connection (in reference to https://blogs.oracle.com/vbcs/defining-multiple-rest-end-points-in-visual-builder-a-best-practice/comment-submitted?cid=…)  and using test option, I can see the data is correctly coming in response. 

    But when I am using this service connection to build data in a Table or List View, while 'Add Data' it gives "Does not contain any suitable Objects" inside the Service connection I created.

    Do you know, why this is coming? As I am short of any leads on this anywhere.. 

    Thanks in advance.

    -Neha

    Version:
    Dev 1.0
    Image:
  • eswar prasad
    Characters getting truncated in the field when passed...1
    Topic posted November 21, 2019 by eswar prasadRed Ribbon: 250+ Points, tagged Services 
    Title:
    Characters getting truncated in the field when passed through VBCS service connection
    Summary:
    Characters getting truncated in the field when passed through VBCS service connection
    Content:

    Hi All,

    I defined a service connection in VBCS and passing request payload in body section using POST API, but the last 2 to 4 characters in one of the filed are getting truncated while passing through vbcs layer and it was observed on server side.

    Attached are the screen shots when passing correct request body with out modifying ResponseType field giving wrong result in first screen shot, where as in second screen shot when appended specific number of characters at the end of the field ResponseType ,those characters are getting truncated and then result is coming fine.

    Version:
    19.3.1.4
    Image:
  • aaina Khan
    Issue with dropdown - options taken from SDP
    Topic posted October 30, 2019 by aaina KhanRed Ribbon: 250+ Points, tagged Business Objects, JET, Services, UI 
    Title:
    Issue with dropdown - options taken from SDP
    Summary:
    Default value not getting loaded in dropdown when i take the options from an SDP
    Content:

    I have created a service connector (describe) for connecting a business object and the key and values from the BO would be taken to display options for a drop down. The dropdown is working fine. 

    But the real issue comes when I assign the Value of the drop down to a valid value from the results obtained from the above said SDP. For example if the option name is India and option value is IN, and I am setting the value attribute of the dropdown option (oj-select-one) to IN, the default value India should be displayed but its not. I am using similar  dropdown in the same page that will fetch value from some other similar service. It fetches and displays values correctly. Kindly help me to figure out what I made wrong. Am attaching the console data FYR.

    Attaching both which is behaving correct correctOne.png and wrong one wrongOne.png also.

     

    Image:
    Document:
  • Mohammed Kaja Nawaz L J
    Staged/Live Published application URL has version number3
    Topic posted October 30, 2019 by Mohammed Kaja Nawaz L JBronze Medal: 1,250+ Points, tagged Action Flows, Composite Component, Services, Stage / Publish / DevOps, UI, Web 
    Title:
    Staged/Live Published application URL has version number
    Content:

    Hi all,

    During development stage, when we check the application the URL doesn't contain any version number but when we stage or publish the application, the URL is appended with version number as like below:

    Development URL:

    https://<pod>/ic/builder/design/<project>/1.1/preview/webApps/<application>/test.html

    Staged/Published URL:

    https://<pod>/ic/builder/design/<project>/1.1/live/webApps/<application>/version_7175212418406661417/test.html

    How to remove version number in the staged/published URL.

     

     

  • Kalpesh Darji
    Custom login page in VBCS and query business object using...Answered2
    Topic posted October 25, 2019 by Kalpesh DarjiGreen Ribbon: 100+ Points, tagged Business Objects, REST, Services 
    Title:
    Custom login page in VBCS and query business object using REST API
    Summary:
    Custom login page in VBCS and query business object using REST API
    Content:

    Hi Shay,

    I would like to create custom login page with username and password in database. How can we proceed further? Can we use business function to achieve this or below link is the option to go?

    https://blogs.oracle.com/shay/conditional-navigation-based-on-queries-in-oracle-visual-builder-cloud-service

    Another question: How can we pass query parameter other than id in Rest endpoint of business objects? Is the ID as query parameter is limitation?

     

  • eswar prasad
    POST request not working from VBCS Code after VBCS version...2
    Topic posted October 23, 2019 by eswar prasadRed Ribbon: 250+ Points, tagged REST, Services 
    Title:
    POST request not working from VBCS Code after VBCS version upgrade
    Summary:
    POST request not working from VBCS Code after VBCS version upgrade
    Content:

    Hi,

    We are facing issue with REST API POST request after vbcs version upgrade which was wokring fine with earlier version.

    Below is request payload which we need to pass in body and it was working fine in earlier version vbcs code, but after recent version upgrade its failing even service connection creation also.

    machine=5CG7084DT4840&ip=10.212.192.61&body={"EmailAddress":"Testrace04@dispostable.com","Password":"Mcafee123","RequestId":"abc","RequestedBy":"McafeeSupport","ApplicationCode":"APIGATEWAY","ResponseType":"IncludeAll"}

    We are getting this below error:

    {
        "RuleType": "Error",
        "Code": "WAPI400",
        "Information": "Invalid RequestedBy",
        "responseCode": 400
    }

    Could you please let us know what changes need to be made in this current version so that it works. The same request works in POSTMAN client.

    With Regards,

    Eswar.

    Version:
    19.3.1.3
    Image:
  • eswar prasad
    PUT request not working from VBCS Code after VBCS version...12
    Topic posted October 23, 2019 by eswar prasadRed Ribbon: 250+ Points, tagged REST, Services 
    Title:
    PUT request not working from VBCS Code after VBCS version upgrade
    Summary:
    PUT request not working from VBCS Code after VBCS version upgrade
    Content:

    Hi,

    We are facing issue with REST API PUT request after vbcs version upgrade which was wokring fine with earlier version.

    Below is the API URL and request payload.

    https://ejjq-dev1.fa.us2.oraclecloud.com:443/km/api/latest/content/C079D37668044482B11C449CE1BD52C1

     

    {
        "recordId": "C079D37668044482B11C449CE1BD52C1",
       "versionId": "704E8A654B7541459E3E5AF76AAE557E",
        "documentId": "WEBC41",
        "version": "40.0",
        "answerId": 1011047,
        "locale": {
            "recordId": "en_US"
        },
          "dateModified": "2019-10-13T18:37:45+0000",
        "contentType": {
            "recordId": "B0DD926A51684AF18F483DC9CD3BE453",
            "referenceKey": "WEBCONTENT",
            "name": "MFE-WebContent"
        },
       "createDate": "2019-04-25T08:38:14+0000",
        "lastModifiedDate": "2019-10-13T09:34:11+0000",
        "dateAdded": "2019-10-13T09:34:11+0000",
        "displayStartDate": "2019-10-13T09:35:21+0000",
        "displayEndDate": "9999-12-31T00:00:00+0000",
        "owner": {
            "recordId": 300000074607717,
            "name": "cspapiuser cspapiuser",
            "email": "jsubrama@mcafee.com",
            "externalType": "ACCOUNT"
        },
        "published": false,
        "pending": false,
        "checkedOut": false,

        "xml": "<WEBCONTENT><TITLE><![CDATA[PutReqTest]]></TITLE><TAG><![CDATA[PutReqTest]]></TAG><CONTENT><![CDATA[<span><span new=\"\"><em><strong>Test V3VBCS xcvxcvcxv Published1 6.0 Content!! test test2</strong></em></span></span>]]></CONTENT></WEBCONTENT>",
           "isForEdit": true,
            "views": [
            {
                "recordId": "BBA181DFB52148779A416184A191B2AF",
                "referenceKey": "SERVICE",
                "name": "Service"
            }
        ]

    The same request is working with postman client but not working with vbcs code currently and getting below error.

    errorCode: "OK-GEN0003"
    title: "An application error has occurred. Root Cause: User not allowed to perform operation."
    type: "APPLICATION"

     

    status: 403
    statusText: "Forbidden"

    Could you please let us know what changes need to be made in this current version so that it works.

    Attached is the image which has the console output as well.

    With Regards,

    Eswar.

    Version:
    19.3.1.3
    Image:
  • Nazeer Anantha
    Access ERP Role in VBCS1
    Topic posted October 22, 2019 by Nazeer AnanthaBlue Ribbon: 750+ Points, tagged JET, REST, SaaS Integration, Security, Services, UI, Validation, Web 
    Title:
    Access ERP Role in VBCS
    Summary:
    Access ERP Role in VBCS
    Content:

    Hi All,

    Is it possible to access the ERP role in VBCS?

    Note; I want to disable buttons on the VBCS screen based on the ERP role.

    Thanks,

    Nazeer.

  • Omar El-Elaimy
    WebViews for VBCSAnswered2
    Topic posted October 18, 2019 by Omar El-Elaimy, tagged Action Flows, Services, Web 
    Title:
    WebViews for VBCS
    Summary:
    I want to create a web view in a VBCS app to be used within my digital assistant.
    Content:

    Everything is good with the digital assistant component is good and done. Now my problem is in action chains and how to pass variables from a page to another in VBCS.

    I was following this tutorial:

    https://docs.oracle.com/en/cloud/paas/digital-assistant/tutorial-host-vb/index.html

    However, the problem is i can't find the FinancialDispute starter application for VBCS as the tutorial states. So I'm kind of doing everything on the app by myself.

    I need to know how the input texts (Name and amount) are loaded from the code that's written in the HTML index file.

    https://docs.oracle.com/en/cloud/paas/digital-assistant/tutorial-host-vb/img/vbcs_11.png

     

    Also, how to pass the radio set value chosen to the action chain of the button that has a module function with postbackURL and data to be submitted which is the radioset's value.

     

     

    Image: