cancel
Showing results for 
Search instead for 
Did you mean: 

Web app preview not working

arshad_ansary2
Active Participant
0 Kudos

Hi Experts,

I am a newbie to UI5 and is in the process of learning .

I tried to implement a sample UI using UI5 .

I have installed Eclipse Kepler version and I am not able to see any syntax error as I type . Here is a sample for index.html file

var obutton1 = new sap.ui.commons.Button("btn1");

obutton1.setText("Header Button");

obutton1.placeAt("header");

// obutton1.attachPress(function(alert("btn1")));

obutton1.attachPress(function() { //optional Event listener

  alert("It works!"));

I have omitted the curly braces for last statement , still I am not able to see any syntax error.

How can i do a syntax check in this case ?

Regards

Arshad

Accepted Solutions (1)

Accepted Solutions (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

for syntax check as you type,Refer Source Validation in SSE editors

http://www.eclipse.org/webtools/wst/components/sse/tutorials/images/source-validation/as-you-type-pref.png

Regards,

Chandra

arshad_ansary2
Active Participant
0 Kudos

Hi Chandra ,

The tickbox is checked

When i click validation I see the javascript client side validation is not checked

I manually checked that . It starts working for that file but for some files it does not work . sometimes

Regards

Arshad

ChandraMahajan
Active Contributor
0 Kudos

Answers (0)