Dropdown is not saved by SubmitForm in PowerApps - submit

I have a dropdownlist filled from sharepoint list, the control is working fine show the items and allow select item, but when I execute the SubmitForm(FrmXXXX) all fields are saved but not the dropdownlists,

Related

Tabulator - how to call a function when using the built in "list" editor and selecting a list option

I'm new to Tabulator. When using the built in list editor on a column, how would I call a function when one of the list items is selected and get the value of the newly selected list item? I've tried cellClick but it calls the function before I can select an item and cellEdited doesn't fire when the item is selected. Any ideas? Thanks!
Here is the column setup:
{title:"Status", field:"status", editor:"list", editorParams:{values:{"Active":"Active", "Won":"Won", "Lost":"Lost", "Cancelled":"Cancelled"}},cellEdited:function(e, cell){CallSomeFunction(cell);}

ViewModel not keeping data on postback

I have a ListBox implemented as below.
#if (Model.SelectListVendorBranchSearched != null )
{
#Html.ListBoxFor(model => model.SelectedVendorBranchLeft, Model.SelectListVendorBranchSearched, new {#class="listbox", #size ="10" })
}
But when the form is posted back the viewModel object does not have the original Data Source that the list was bound to. But it has the selected items posted back.
Is that the right behavior?
Let me try to explain what I am trying to achive.
I am trying to implement the following in ASP.NET MVC.
I have a search functionality that populates a list box say List box A. Now I need to select some items in the List Box A and move the items to another List Box say List Box B. Then do another search that refreshes the List Box A with fresh results. Then again select some more items in the List Box A and append to the items already in List Box B. In the end get the items in the List Box B and save it to DB. How can I do this without any JavaScript?

Edit multiple rows in Table Struts2

I am displaying a list of data returned from database to JSP.
Now, this list has fields that are editable. And user can select more than 1 row to edit.
My requirement is to display the list, override the list(which has dropdown and checkbox fields that can be overridden by user) and then all of it to be saved to database.
I used displayTag to display the data, but now User editing few fields and populating that table to Action class part I am not able to get.
Can you give some suggestions?
May be other than displaytag also?

sj:select tag in struts2-jquery plugin calls the JSON method again when the page gets submitted for a different action

This question is on Struts2 jquery plugin. While loading a JSP be default I am loading one dropdown list values and the second dropdown values are loaded based on selection of first dropdown. When the second dropdown value is selected an onChange event get executed and the page is getting refreshed. When the page is refreshing the First dropdown is getting called again! Is there anyway to avoid the second time execution of default loading of firstdropdown and also need to hold the selected values for both the submitted dropdown values of the JSP?
Note: First dropdown and second dropdowns are evaluated in SampleAction.java and onChange event executes LoadAction.java
Please let me know if you require further details!
Thanks
An option from the first dropdown is selected
Second dropdown is filled accordingly and then a value is selected
Instead of page-refresh, you can submit a form passing the values of both select tags
Now you get the selected values in your action and then you can show the same page but with prefilled values. This time when the page loads, the first select box by default shows the same previously selected value.
For the second select to show the previously selected value, you'll have to write some javascript code which will select the previously selected value.

JSF transfer an object

I have a list of users (id, username, etc.) which I gain from the DB
I have an index.xhtml (jsf tags) that I'm using to display all the users
I have a dataTable which displays all the data for a user on one row. On the same row I have a button called "edit". On click it goes to another page "edit.xhtml"
Q: How to get object on which I clicked "edit" in index.xhtml to edit.xhtml ?

Resources