Why can't I find my fiddles using 'View My Fiddles' - extjs

I started using Sencha Fiddle, and I have a hard time to get it work. So far I created two fiddles, but I can access them only via their URL fiddle 1 and fiddle 2. But when I want to access them through the user menu username - View My Fiddles, I get an empty list *No fiddles found, even though int the Details section, the field Author my username is filled with my username.

Related

FInding saved fiddles in new Sencha Fiddle

I cannot find my saved fiddles in the new Sencha Fiddle :
I used to be able to click on my name in the top right corner and get a list of saved fiddles.
I can no longer find my saved fiddles.
Use the search function and enter your own username in the Author field.

Angular - async context validation

I am newbie in angular so please keep it in mind. I want to create dynamically some items. In my example item has id and name. Items should not have the same names within scope. Moreover items should not have the same name as items already stored in db. I looked for some kind of ng-remote but I didn't find any which would fulfill my needs. So I created my own async Validator. Here is simple example:
plnkr.co/edit/yEXUnEjd6JC7bFOOSErC?p=preview
Everything works great in simple scenario:
1. user creates first item with name "Test"
2. User creates second item and try to set name as Test then validation occurs. User change the second name as test2. Everything is fine.
BUT. Take a look into second scenario:
1. user creates first item with name "Test"
2. User creates second item and try to set name as Test then validation occurs.
3. User leave the second item and change the first one to "Test2". Validation is still visible because angular validate only item which changed.
So I need to ask how to resolve this kind of issue? I thought that maybe during submit I would rerun validation for each field. But I don't know how. Is there any other ideas?
I spent a lot of time trying to resolve this issue and I couldn't do that.

New webpage needs to close previous page

I'm working with a hospital where we are implementing a web-application that is triggered from their own hospital information system (HIS).
The way the app works is that in their HIS, they select a patient and call the web-app with the patientId in the url.
Regarding patient safety, they want only one of those tabs open at the same time.
So if a second patient-tab is opened, the first one should be closed ..
Is this possible? And if it is, how?
Edit following danday74's answer
The url from the HIS is triggered via command line arguments (SAP system).
Firefox "http://url_to_webpage/"
when you link to the patient tab do this ...
<a ng-href="/your/patient/url" target="patientTab">open new patient tab</a>
When the link is clicked it should open the page in a new tab called "patientTab" - if another link is clicked with the target patientTab then it will use the existing "patientTab" - just make sure all your anchor tags that use the patientTab have the target set.
hope that does the job for you :)
So for the people that have a similar problem, the way we fixed it was the following:
On the init script for the page, we check if a session variable tab-token is found and if it contains a UUID
If the variable is not found, it means that no other open tab is found and we leave the tab active + create the variable and store a generated UUID in it
If a UUID is found, that means another tab is also active and we show a screen overlay with the message that another active tab was found
We watch on every change in the session variable and update the screen overlay whenever and wherever it needs to.
It is not a fool-proof solution, but in the context and usage of the application, it is sufficient ..

Website "you can do this" script

I want to create a training path for new users accessing my site. This training path must display info bubbles showing what you can do on every page, but only the first time you access it.
So, for example, if a user enters a page where there's an edit button an info box should appear next to the edit button telling the user that he can edit that page.
I will create the script myself, I just want to know what's the best method to check if the user has already seen that box or not. I was thinking about storing in database a boolean value for each info box which will be set to true if the user has seen the box. To save some queries from the DB I think I can also store the same values in localStorage or in Cookies.
What is the best practice for creating user training paths for a website?
The way I suggest is to store user id (ip or username ? ) and a bit value for each bubble like you say.
PS: for your script you can use this:
http://www.maxvergelli.com/jquery-bubble-popup/documentation/
Jérôme

Move login form from subdomain to homepage and sort comapanies alphabetically

Outsourced a document management system to a CakePHP developer who has now disappeared, without doing the final touches, leaving me high and dry. Project is due Monday the 28th, I'm freaking! I sat for 2 days, but couldn't solve these issues. The main thing is the member login form at dms.domain.com.
It works perfectly and redirects to http://dms.domain.com/dir/dir but members actually need to log in via the login form I created on the homepage www.domain.com
I had a look at the source of the login form on the dms.domain.com which looks really simple, much like standard code, however I tried searching for the form elements in the source code of the entire site, but no luck. This leads me to believe that everything's called from the database, but hopefully not because that's out of my league.
Surely if I can find the form code used on dms.domain.com I can just reuse it on the home page?
The second thing is, once logged in, the list of companies is sorted via date created it seems? but I want it sorted via company, alphabetically. Again I searched the source for code like "asc" but I realized Cake doesn't use standard sql queries. I did however find, 'sortorder' => 'desc', 'sortname' => 'id', and changed 'id' to 'company' but no luck. Below is what I currently see when log in. Thanks
Id Company
1 Fos
21 Mamas
20 Clove
25 Orm
24 Colors
I'm assuming your main site www.domain.com is not written using CakePHP - is that right? If that's the case, you could just copy the generated HTML of the login form on dms.domain.com and paste it into the login form on www.domain.com. Make sure that the action of the form is set to the full path to the login action on dms.domain.com e.g. http://dms.domain.com/dir/dir.

Resources