Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

Forms Conflict during update process

Posted: Jan/18/2011   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:21   Vote Up (0)   Vote Down (0)    

The following is InfoPath 2007 issue:

I have simple performance review form that will be completed by all employees of the customer. Completed forms will be submitted to a forms document library. A workflow will email the form location hyperlink  to the manager. Managers may update the employee's performance review form.

Form service is used for this application ( no infopath client is allowed) Form has a submit button. When the button is clicked it submit the content to the library with username.xml  format.

The issue is when a manager updates an employee’s form, submit to the document library and then open his /her own form to update content all content that was created in employees form will be available in his / her form.

In summary, InfoPath form is somehow not storing the content in right form.

Help is highly appreciated.

 

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Manual Sign Out in ASP.NET Forms Authentication

  
I utilized forms authentication as provided by ASP.NET engine. At first, everything worked well until there was a need to manually sign out current user. Quick look into MSDN documentation revealed SignOut() method of FormsAuthentication class. The documentation promised that this method signs out the user and redirects the client to login page. Considering the fact that I did not care about redirect (Flex application was running on the client side, so that redirection did not have any effect), I was hoping that the method would still perform desired effect and "de-authenticate" (I know, I know, that is not even a word) current user. At first, it seemed to work, but debugging revealed that even though this method removed authentication cookie, it did not sign out the user. User's identity was still marked as authenticated and subsequent calls to the Http handler would be considered authenticated. Furthermore, the session object was still valid, so that existing session information was still available. Quick look into MSDN revealed Session.Abandon() method, which would destroy session object upon execution. However, even though the session object was destroyed, client calls to ASP.NET web application were still considered authenticated. It was time to search the web to see if other developers faced the same issue.

How to format and update GridView and DataGrid rows using JQuery

  
The behavior described in this question is as expected. When you set text of a cell in grid, it directly affects HTML that is going to be rendered. When you set text value of a cell, it means that you are setting innerText of the cell. The column that GridView creates for command fields (Edit, Delete and Select) are a (anchor) or button elements. So you can see what will happen if you set text value in that cell. It will wipe out those link or button controls and replace them with simple text string.

Cannot insert the value NULL into column 'COUNTY', table 'TPI.dbo.juror_tmp'; column does not allow nulls. UPDATE fails.

  

I am attempting to bind data from a dropdown list that was populated from another datasourceID. I've bolded what I believe is relevant to this issue in the code below. But basicly its binding the proper county on the pull down menu but when I hit form submit it dosnt postback that info instead its null.

<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1"
            style="margin-right: 59px"
           CellPadding="4"
            ForeColor="#333333" DefaultMode="Edit" DataKeyNames="UID">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditItemTemplate>
                Edit Item Template<br /><asp:Label ID="uidlabel" runat="server" Text='<%# Bind("uid") %>' /><br />
                last_date ha:
                <asp:TextBox ID="last_dateTextBox" runat="server"
                    Text='<%# Bind("last_date", "{0:d}") %>' AutoPostBack="True"
                    CausesValidation="True" />
                <br />
                first_name:
                <asp:TextBox ID="first_nameTextBox" runat="server"
                Text='<%# Bind("first_name") %>'
                    CausesValidation="True" ontextchanged="first_nameTextBox_TextChanged1" />
                <br />
                last_name:
                <asp:TextBox ID="last_nameTextBox" runat="server"
                    Text='<%# Bind("last_name") %>'
                    AutoPostBack="True"
                    CausesValidation="True" />
                <br />
                mi:
                <asp:TextBox ID="miTextBox" runat="server" Text='<%# Bind("mi") %>'
                    AutoPostBack="True" CausesValidation="True" MaxLength="1" />
                <br />
                home_phone:
                <asp:TextBox ID="home_phoneTextBox" runat="server"
                    Text='<%# Bind("home_phone") %>' MaxLength="9&

Manually Calling Update on ObjectDataSource Causing Multiple Updates

  

I have GridView that is bound to an ObjectDataSource and within that GridView I have CheckBox, DropDownList, TextBox and Label controls.  All the controls except the CheckBoxs are working like a champ or normal display and Delete (Insert is handled outside the GridView, it works also). 

The CheckBox values are passed into the update method for the ObjectDataSource as type byte.  Without doing any custom coding the CheckBoxs were always unchecked (regardless of the data being 1 or 0)  and when I edit a row in the GridView and saved the values the CheckBox controls would always be 0 even if the check boxes where checked. 

After searching web I found a suggestion to change the binding on the CheckBox controls from, Bind("Monday") to this, CheckUncheck(DataBinder.Eval(Container.DataItem, "Monday")) with CheckUncheck being a method to make 0 or null = false and 1 = true.  This seemed to the do the trick and it set the CheckBoxs correctly in the DataGrid, I was giving myself high-fives, until. I tried to update a row. 

When doing the update, as with my first attempt, it would always set the CheckBox values to 0, thus ignoring the checked property of the CheckBox.  So I search the web again and found a suggestion to handle the update manually, due to the binding being one way. So I created a myUnhappyGrid_RowUpdating event handler and changed all the columns in the GridView to template so I could do the old school .FindControl on them and grab the values.  Once I was able to grab the values from the row to be updated I added them to the ObjectDataSource .UpdateParameters and called ObjectDataSource.Update() and it worked, kind of. 

Now came the next trial, it did the update into the database just fine and I was happy, until..  I finished stepping though the code.  As I stepped through the code the update on the ObjectDataSource got called two more times, thus undoing what I had just spent hours fixing.

First, is the road traveled the right way to do it?

Second, if I am on the correct road how can I suppress the additional two updates that follow my manual .update call on the ObjectDataSource?

Please help!


Modal Forms Questions.

  

Ok..my last in a series of questions tonight.... Sealed

Got a form using a strongly typed view.  The viewmodel have a nested type, which mostly are not displayed on the form.  (Say a "person" model with an "address" nested model.) 

Note: This is just a simplified example....(and this have not been started yet, so I'm open to alternative suggestions, as long I can fit it into th user requirements)

On the form, I have a label, showing the city of the user's address.  Of course this will not show anyting when you create a new person.

On the form is a button "Create Address".  This will popup a modal form (strongly typed...."address").  You enter an address (street, select country, etc) and click save.

Now....This "address model" must become the value of the "main" form's "person" model.

At the same time, the "city" label of the main form must show the "city" member of the "address" nested model.

This should all happen client-side (dang..this client with their "client-side" requirements..why not just get a desktop app build then?)




AJAX UPDATE PANEL GET REFRESH EVEN JQUERY BUTTON CLICK RETURN FALSE

  

Hi !

I want to pop up a password text box and ask the user to enter the password again before procedding to retrieve a report.

However, my button keep submitin to the server to get a report.

I use AJAX Update Panel that contain a grid view and a button trigger the grid view to be filled in.

I use jquery to pop up a dialog box and even i return false on the click even, the update panel is still get updated before the user fill in a password.

How do i make sure the click event that pop up a dialog box come first before any other click event ?

        Sys.Application.add_load(function() {
            $("#dialog:ui-dialog").dialog("destroy");

            $("#dialog-modal").dialog({
                height: 140,
                modal: true,
                autoOpen: false,
                buttons: {
                    "OK": function() {
                        var passwordtxtbox = $('#<%=PasswordTxtBox.ClientID%>').val();
                        if (passwordtxtbox != "" && passwordtxtbox.length > 0) {
                            $(this).dialog("close");
                            return true;
                        }

                    }
                }
            });

            $("#<%=Search.ClientID%>").click(function() {
                $("#dialog-modal").dialog("open");
                return false;
            });

 


!!!Still Help needed on Forms authentication timeout

  

here is the case:

1. login to a page

2. waiting until my timeout

3. when clicking a new page after timeout, it goes to the login page... (expected)

4, after login, i want to go to the page i just clicked before the login...(how can i remember the page address i clicked so that i can redirect to the new page after login)

 

how can i accomplish No. 4 there after 1, 2, 3? 

 

and 

is there a timeout event on number 2 there(really i also dont know where to set the new address, i am think there must be an event on timeout which allow me do that, but i don't find it so far)? i am not talking about the OnLoggingOut Event..... 

 

thanks......


How to use stored procedure for insert,update,delete,select in Entity framework 4 with MVC2

  

hi friends,

i m new bie in the MVC.

i want to know how to call stored procedure in entity framework. how to do code with controller class and with model.

i mean if i want to call  insert,update,select,delete stored procedure for entity framework then what are stps i have to follow.


plz help me if anybody knows!!!!

Thanks



SQL update command to string

  

I to read the SQL command with all the parameters already bound and subsititued so I can debug it on post back. Its the only way, I would know where to start to figure out why data isnt updating on the table. I am new to VB and ASP.NET but looking at the videos im thinking it would have to be something to do with the isPostBack method on the page_load event.


update records of a sqldatasource that is used for a GridView?

  

Sorry if this has been asked before but i couldnt find a specific answer to this question, i am relatively new to .net :)

i have a gridview that is displaying data from a sqldatasource in my page_load event. i need to loop through the records and update each value of a particular column BEFORE being set into the GridView.

i have tried converting to a data set and looping through updating the values, however it seems that one i initially run my query the values get set right into the GridView and i can't update them after that.

Do I need to add one of the GridView functions like Databound and do the loop in there? Any help would be appreciated. Thanks!


 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge