SAPUI5 bind View to Wizardstep - url-routing

i dynamically add steps to a wizard. For each step i have a corresponding view which should be bound at runtime.
can anyone tell me the best way to achieve it please?
with fragment i could used the following code:
sap.ui.xmlfragment("firstapp.flightdata.view." + wa[j].getAttribute("value"), this).placeAt(wa[j].getAttribute("id"));
wa[j] is the current step.
should i work with routing? If yes how please
Thanks in advance.
Aline

was pretty easy.
nestedView = sap.ui.xmlview('firstapp.flightdata.view.Street');
this.getView().byId("page1").addContent(nestedView);
or
sap.ui.xmlview('firstapp.flightdata.view.Street').placeAt(this.getView().byId("page1"));

Related

Can we use gauge/gage in Ionic ? (Cordova)

This is my first post here, so I'm sorry if I'm not in the good section.
My "simple" question is, can we add a gage/gauge (I don't now the exact english spelling), in a Ionic project ?
A thing like that:
https://www.youtube.com/watch?v=w2qrYL0Le24
Or an other exemple:
http://crisbeto.github.io/angular-svg-round-progressbar/
I already tried to insert gauge like that in my project but the gauge never appears, so please, can you help me ?
(The goal is to show to an user a speed for exemple or the batterie life of his smartphone, any importance, juste a jauge who can be incremented or decremented)
Can you explain me please how it works, for example via a Codepen or anything else. I had already tried to search response but I solve anything on that.
I'm french and I am sorry for my language, but thanks in advance for you'r help !
Thanks.
I was able to get this to work:
https://github.com/frapontillo/angular-gage
You must also have the JustGage library and Raphael. Take a look at the example to see it in action. I was able to even make it work in the http://creator.ionic.io app by adding the scripts of angular-gage, JustGage and Raphael (just add a js and paste in the scripts).

Define header, footer, navigation, main, etc in qooxdoo standalone application

Im taking my very first steps using qooxdoo, and I would like to create a layout having those areas to insert some widgets into them. Im trying to achieve something like this : http://w2ui.com/web/demo/layout
Im confused about wich widget is best to get it done.
Any help is really appreciated, thanks.
Never mind guys, I kept digging the manual/api I found something to get it done. Thanks anyway
check the example.
regards
Playground example

How can I change default values inside config file in angular js?

https://github.com/arunisrael/angularjs-google-places
I want to change this default values dynamically but don't know how to do?
I tried to define constant but they can't be changed.
I also tried values but they can't be injected inside config file.
So any one can tell me how can i change types:[] array from controller in angularJs?
Any help would be much appreciated !!
Yes earlier I was looking for same problem then I created an issue in main repo and also wrote an answer. Please have look I guess It will solve your problem.
https://github.com/arunisrael/angularjs-google-places/issues/17

Implementing copy-paste directive in my table using Angularjs directive

I am displaying some data in tabular format. I am trying to add the ability to copy contents of one cell and paste into another. i know I have to do something like
element.on('ctrl-c',function(e){
$scope.textToBeCopied = element.innerHTML;
})
and then let the cursor move to the relevant position and implement a similar paste function.
Those with knowhow of how to implement this feature kindly advice.
I have a plnkr here:
http://plnkr.co/edit/YyZLVKtRAR1OYGey0FYj
figured it out.
Those who wanna take a look or offer a better solution please see the plnkr.co here
http://plnkr.co/edit/YyZLVKtRAR1OYGey0FYj
Focus on the file copyOn.js
This is where I have defined the copy-paste directive

Dynamic exposed filters in Drupal 7

I've got a question in drupal. I have two filters. The values of the 2nd filter depends on what value was chosen in the first filter.
Example.
First filter values : Lakers,Clippers
Second filter values : if Lakers was chosen = KOBE,GASOL
if Clippers was chosen = PAUL,GRIFFIN .
Is there any module that supports this? Or do I have to code this? If I do is there any reference or guide that I could read and follow?
THANKS!
Yes there is
Drupal has a module called hierarchical select.
check this out
https://drupal.org/project/hierarchical_select.
Hope this helps you.
Don't use hierachical select. It is chock full of bugs and since the maintainer went to work for Acquia, he no longer pays any attention to it. You'll have to write some code to make this work using contextual filters.

Resources