I am curious if you have any suggestions for me regarding the Angular “canDeactivate Guard” feature. I implemented it for a series of tabs, and it worked as expected. The guard will warn the user that there is unsaved data when navigating between tabs. Then, the user can leave (Ok button) or stay (Cancel button) on the confirmation dialog. However, I cannot get it to prevent the user from selecting a node in the navigation tree menu.
Scenario 1: the user switches tab while there is unsaved data and select the “Cancel” button on the confirmation dialog
Expected Result: worked as expected
Scenario 2: the user switches organization or group on the navigation tree while there is unsaved data and select the “Cancel” button on the confirmation dialog
Select an organization or group on the navigation tree
Modify the organization data
Select a different organization or group on the navigation tree
Expected Result: The expected behavior is when the user selects the “Cancel” button, the unsaved data does not change, and the original organization remains on the same node.
Actual Result: The St. Luke’s Roosevelt organization is selected, whereas it should not have been.
Step 1
Step 2
Step 3 & 3
Final Result
Related
I need help in a Salesforce visualforce pages .I have 2 vf pages and 2 different controllers for that. The problem is when the user applys few filters on current record list page(page 1), and opens a filtered record which open page 2(detail page). Now when he hits the back button to see the filtered list again, the applied filters disappear and he is not getting filtered result.
What I'm trying to do is create a form where people input data. They're basically going to be tracking what they've done on a computer.
I'd like to have one main form that starts off with a brief intro and then a tab where they're going to be entering the information.
I'd like them to have the option of adding new tabs, so they can track their actions with multiple computers at once.
What would I need to have the button do in order to open a new tab next to the existing one?
Here are the instructions:
Begin in the main screen of Applications Manager by clicking the green arrow/play button on the top menu. This displays the Requests screen.
In the Requests screen search box enter mkbanner then click the Request button. This displays the Submit screen.
In the Submit screen click the Select button for a list of available jobs.
Next screen has two columns or list boxes. Scroll through the Unassigned list or enter the Banner job name in the search box. Highlight the job in the Unassigned list to select and click the blue right arrow button to move the job to the Assigned list box. Click OK.
You return to the Submit screen. It's not obvious that you have selected anything because your job name doesn't appear anywhere. It just displays a "Ref= number" in the Prompts box. Just click the Submit button now and you will hopefully see a message, "Job was Successfully submitted: Run ID = 99999". Click the Close button.
Now you should be back in the main screen of Applications Manager. After waiting a while, select the Jobs icon on the top menu. In the search box enter the name of the job you made. It is displayed in the list.
The answer is posted in the above instructions
Here is a codepen http://codepen.io/shirha/pen/BNBxWJ/ to better show my question.
First notice on the recipes tab that Briar Heart shows on multiple rows.
Now navigate to the ingredients tab and uncheck Briar Heart.
And then tab back to the recipes tab and notice that all the Briar Heart recipes have been removed (thanks to the filter:available).
Now go to the options tab and click refresh ingredients.
The recipes tabs includes Briar Heart again. Notice that clicking the Briar Heart ingredient button on the recipe tab also unchecks the ingredient and removes the recipes.
If you now change the link to the ionic-bundle.js to 1.0.0-rc.3 and perform the same steps, you will notice that the recipes tab will not refresh without scrolling forward past the buffer specified on the collection-repeat.
I've tried to code an scope.$apply() to work around this but I don't know how to do this and have been unsuccessful so far. I'm not sure if this is the right idea.
I think in your case the best option is to disable the view caching. The view will get cached (even if the state changes in the background) and not immediately updated. You will notice if you follow your steps above, but then click on another item on the recipes view (when Brian Heart still shows, but shouldn't be) it will also update the scope and the view will reflect the correct changes. Here is and updated working codepen http://codepen.io/gnomeontherun/pen/KpPLop?editors=001.
.config(function($ionicConfigProvider) {
$ionicConfigProvider.views.maxCache(0);
})
I would like to bring view details button in my form when right clicked on my form view details should be shown like in standard any form for example when we right click on item number field on the form we have view details option when clicked that opens the details form of that item.
I tried using the normal right click method but could not succeed, please help me how to bring the view details functionality in my custom form.
To have the "View details" standard context menu, the following must be true:
The foreign key (FK) must have a relation defined on the table of the key
The table pointed to by the FK must have a form
The form must have a display menu item
The menu item must have the same name as the table or the FormRef property must be set
The menu item must have security set up, and the user must have read access (or better)
Running the Best Practice check will usually spot the errors.
This blog entry explains it nicely.
You have to create Display Menu Item with the selected form.
Then you can set newly created menu item for the FormRef property of the Table.