I have to create an MVC view where I have 3 tabs on a page.
Each tab has 10 fields to be accepted from the user. Then, the second tab is proceeded to which also has 10 fields.
My question is this: If I click on the back button of the page or if I go to the previous tab from the second tab, then it should show all the data which is filled by user and how to create a multiple tab on a single view. How do I go about doing this?
Related
There is currently a form, suppose there are two labels, I want to have a field with a value for the label ex2 to appear, if not, hide the label ex2.
Is there a place to set it?
After I tried, the tab still visible...
In the Designer :
In the Client :
To hide a TAB you simply hide its contents. If you e.g. would want to hide ex2 you would select the complete content of the tab", open the text properties (Alt + Enter) and enter something like:
HideEx2 = "Yes"
in the hide- when formula. Then the tab will disappear as soon as the field "HideEx2" gets the value "Yes".
Take care: Hide whens are NOT calculated "automatically". If your Hide- When depends on the value of an option or checkbox field you need to check the mark "Refresh fields on keyword change" in the field properties of the HideEx2- field.
Otherwise your user needs to press F5 or save the document to make the tab appear / disappear
If there are Tables in the tab, then you need to do three steps:
select everything before the table (red BEFORE in the screenshot), set the hide- when
select all cells of the table, set the hide when
and at last select the text after the table (red AFTER in the screenshot) and hide it.
3 different selections, 3 times setting the checkmark, 3 times inserting the hide when! You CAN'T do it in one step, it's not possible to select a table AND its surronding and set the hide when for everything at once. You can select it, but hide when will only be set for some of the stuff.
If there is one single line that is not hidden in the tab, then it will be visible.
On the order form, there is a products section that has uses the default Order Product Inline Edit View. This view is not editable, but you can copy it and save it as a different name.
However, when you copy the view, the new view does not display all of the same buttons when viewing the sub-grid.
default view:
copied view (the lock pricing, move up and move down buttons are missing):
The copied view shows the + button and it's drop down menu correctly. Why hasn't it copied the other buttons, and how can i get them to show on my custom view?
I am happy to edit xml and upload that back to CRM if necessary.
Update:
FYI, this is all a pointless effort as the word template ignores the sequence order. What an utter waste of time.
I'm going to guess it's because the default view on the order of order products is a special one. It has special behaviours that arn't seen in the rest of 365, i.e. you don't get up, down, or lock on other views.
I would assume that the extra buttons only get shown on that default view and arn't really supported outside of that view.
Turns out it is actually quite easy to show these buttons for other views using the ribbon workbench.
Right click on the button in ribbon workbench under the subgrid section and click on customise
Select the command in the "solution elements" pane at the bottom
In the bottom right hand pane, right click on the enable rule "Mscrm.IsInlineEditView" and click "Remove from Command"
Publish
These buttons now show up for all views.
What are the methods which are available to Add tabs to the Tab strip dynamically?
I have already tried adding the Tab while dynamically creating the Tab strip on the fly but not able to load the content inside it.
Kendo basically provides three function to add the Tabs.
1. Insert Before (which will add the Tab before the 1st Tab)
2. Insert After (Which adds the tab after the 1st Tab)
3. Append (Which adds the Tab to already existing Tab Strip
In your case you need to go with the either first or second approach as you are dynamically creating the Tab.
One suggestion:
As Kendo insert Tab after 1st and not after the Selected Tab which is not a normal scenario, you can use select function before adding a Tab
I have 3 radio button A ,B, C
and I have 3 tab page in the canvas A, B,C.
My Requirement is if user select radio A and press Submit button then tab A Should get activated and my cursor got to tab A.
If it is enabled and visible then you can use the following commands:
go_item('blockname.itemname');
or
go_block('blockname');
If you don't need to go to a specific item then use the second command go_block.
To enable a tab page:
set_tab_page_property('TAB_PAGE_NAME',enabled,property_true);
If the tab page was not visible you should make it visible first:
set_tab_page_property('TAB_PAGE_NAME',visible,property_true);
In order to navigate to that tab page, the easiest way to accomplish that is by going to a navigable item that is in that tab page:
go_item('ITEM_IN_THE_TAB_PAGE');
First you have to set the tab page as top most using set_tab_page_property(top_most_tab_page,'tab_page_name'). after that use go_item('block_name.item_name');
here is the easiest way to do this
In the following code, I supposed that the radio button name is: RADIO_BTN and it's value is 'A'
open submit button properties and set 'keyboard navigation'= No and 'mouse navigation'= No
on tab A create a dummy item (not database item) and name it A, with width=0 and height=0 so the user will not see it, or use a real item name on tab A
open trigger when_button_pressed on submit button and write the following code.
IF :RADIO_BTN = 'A' THEN /*replace this with your radio_btn name and value */
GO_ITEM('A'); /*go to dummy item in tab A or to real item in tab A */
END IF;
I have a C#.NET MVC3 web app. I have a View that has a List of Models. This list can be long, requiring the user to scroll down on the View. When selecting one of the models in the View to Edit, the user is taken to the Edit View. After submitting the Edit View, the user is redirected back to the List View. However, the List View is now displaying back at the top of the list. How can I redirect the user back to the same position in the List View where they clicked the Edit button?
You would probably be better suited using a modal popup dialog to edit the data, rather than navigating to another page.
While it's possible to do what you want, it's a pain. You would have to get the scroll location via javascript, save it to a hidden field, post that to your edit page, along with record number and anything else, then re-post it back to your original page when you return, then read the post value and scroll to it via javascript.
All that is avoided if you just use a modal edit dialog, then when the dialog goes away the page is still in the same place.