Skip to Content

sapui5 opa5 how to write a OPA Script for an Input Control available in another project

Sep 13, 2017 at 04:08 PM


avatar image
Former Member

I have 2 projects in my WebIDE workspace..

I have a strange requirement, i have a view which consists of 3 fields(One Input Picker and 2 input fields).. Here Input Picker is available in another project, But in the Current Project im accessing that field in my view.xml file using in this way..


<Label text="Opportunity" required="true" id="oppIdLbl"></Label>
<core:ComponentContainer id="pcOpportunityInputComponent" name="" propagateModel="true"></core:ComponentContainer>

in OPA script i have imported the other project in .html file in this way..

<script id="sap-ui-bootstrap"
            "": "../",
            "" : "../index"

View file Available in another Project

    <mvc:View controllerName="" xmlns:html=""
    xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m" xmlns:oppor="">
    <Input valueHelpOnly="true" showValueHelp="true" valueHelpRequest="onOpportunityValueHelp" id="pcOpportunityInput" fieldGroupIds="pcOpportunityInput" change="onOppChange"></Input>

in my OPA Configuration file i have configured my Current Project in this way..

        viewName : "test",
        arrangements: new Common(),
        autoWait: true

Here viewNamespace is a String, So atmost we can configure only One Project related Views.. But how can i write the OPA Script in the Current Project by access the above View file which is available in the Other Project??

Please help me with the above query..

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers