cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe
<mvc:View
	controllerName="com.volkswagen.ifdb.cc.sopraempSopra_Employee.controller.C"
	xmlns="sap.m"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns="jquery.sap.global-dbg.js"
	xmlns:custom="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">
	<SplitApp
		id="SplitAppDemo"
		initialDetail="detail"
		initialMaster="master">
		<detailPages>
		    
			<Page
				id="detail"
				title="Detail 1"
				backgroundDesign= "Solid">
				<Label text="Detail page 1" />
				<Button text="Go to Detail page2" press=".onPressNavToDetail" />
			</Page>
			<Page
				id="detailDetail"
				title="Detail Detail"
				backgroundDesign= "Solid"
				showNavButton="true"
				navButtonPress=".onPressDetailBack">
				<VBox class="sapUiSmallMargin">
					<Label text="This is Detail Page2" />
					<Text text="Here you could change the Split Application mode. After the mode change, resize the browser window to see the difference in the master form behaviour." />
					<RadioButtonGroup columns="1" width="500px" class="sapUiMediumMarginBottom" select=".onPressModeBtn">
						<RadioButton id="RB1-1" text="show/hide" selected="true" custom:splitAppMode="ShowHideMode" />
						<RadioButton id="RB1-2" text="stretch/compress" custom:splitAppMode="StretchCompressMode" />
						<RadioButton id="RB1-3" text="hide" custom:splitAppMode="HideMode" />
						<RadioButton id="RB1-4" text="popover" custom:splitAppMode="PopoverMode" />
					</RadioButtonGroup>
				</VBox>
			</Page>
			<Page
				id="detail2"
				title="Detail 3 Page"
				backgroundDesign= "Solid"
				showNavButton="true"
				navButtonPress=".onPressDetailBack">
				<Label text="This is Detail Page3" />
				<Input/>
				<Label text="Label 2" />
				<Input/>
				<Label text="Label 3" />
				<Input/>
				<Label text="Label 4" />
				<Input/>
				<Label text="Label 5" />
				<Input/>
			</Page>
		</detailPages>
		<masterPages>
			<Page
				id="master"
				title="Master 1"
				backgroundDesign= "List">
				<List>
					<StandardListItem title="To Master2" type="Navigation" press=".onPressGoToMaster" />
				</List>
			</Page>
			<Page
				id="master2"
				title="Master 2"
				backgroundDesign="List"
				showNavButton="true"
				navButtonPress=".onPressMasterBack">
				<List itemPress=".onListItemPress">
					<items>
						<StandardListItem title="To Detail 1" type="Active" custom:to="detail" />
						<StandardListItem title="To Detail 2" type="Active" custom:to="detailDetail" />
						<StandardListItem title="To Detail 3" type="Active" custom:to="detail2" />
					</items>
				</List>
			</Page>
		</masterPages>
	</SplitApp>
</mvc:View><a href="/storage/temp/2170107-100.png" data-attachment="2170107">100.png</a>

Accepted Solutions (0)

Answers (1)

Answers (1)

sergiorecasens
Participant
0 Likes

Hi,

You must define the correct library in your index.html file. Now refers to a wrong UI5 library.

Change the <script> id="sap-ui-bootstrap" src=... with some of this two options:

  • Load library locally:
<script id="sap-ui-bootstrap" src="/resources/sap-ui-core.js"
  • Load library from CDN server::
<script id="sap-ui-bootstrap" src="https://ui5.sap.com/1.105.4/resources/sap-ui-core.js"

Thank you

mahmood_hammood
Participant
0 Likes

Hi Sergio,

Thank you for answer, I used the first option but no result. I searched in CDN founder and the result is "DNS lookup of type A failed for localhost: No DNS record available (NXDOMAIN). No Comment."

sergiorecasens
Participant

Hi mahmood_hammood

Please try with the first option and check if you have the folder 'node_modules' in your project. If not, open a terminal or CMD inside the folder of your app and run the command 'npm install'.

Thanks

mahmood_hammood
Participant
0 Likes

Hi Sergio,

I tried to find CMD in webide but I hav not got it .

Do you have Zoom, maybe can you explain this for me?

Thanks