jbonfardeci / ShockoutForms

SharePoint + Knockout MVVM forms - an InfoPath killer
32 stars 8 forks source link

Supervisor input doesn't display correctly #16

Closed leolorenzoluis closed 8 years ago

leolorenzoluis commented 8 years ago

I am using claims based authentication. I can get the supervisors without a problem. However, once I focus out of the textbox, the displayed text is just 'i:0'

jbonfardeci commented 8 years ago

It’s likely the formatting of the default account name in your dev environment. VM? When account names are sent over from REST, they look like 1;#DOMAIN\username where ‘1’ could be any user ID number. This of course can change based on the format you have selected for the person field in the SP list. The knockout component tries to render the display name for regular users.

On May 12, 2016, at 4:24 PM, leolorenzoluis notifications@github.com wrote:

I am using claims based authentication. I can get the supervisors without a problem. However, once I focus out of the textbox, the displayed text is just 'i:0'

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jbonfardeci/ShockoutForms/issues/16

leolorenzoluis commented 8 years ago

Well it looks like it is pulling accounts from the active directory and the claims based authentication users. The claims based users are what I am interested in. However, like I said it just displays i:0 though it is valid. It also displays properly on edit.

This only happens when you create a new item.

bnsc commented 8 years ago

You are talking about a so-person-field, right?

If so, do you see a list of users once you type at least three characters?

On Mon, May 16, 2016 at 4:36 PM, leolorenzoluis notifications@github.com wrote:

Well it looks like it is pulling accounts from the active directory and the claims based authentication users. The claims based users are what I am interested in. However, like I said it just displays i:0 though it is valid. It also displays properly on edit.

This only happens when you create a new item.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jbonfardeci/ShockoutForms/issues/16#issuecomment-219555829

+Bill

https://plus.google.com/u/0/+BillCochranRocks/posts https://www.linkedin.com/in/bnscbill http://stackoverflow.com/users/4347437/bill

leolorenzoluis commented 8 years ago

Yes, I do see it. I am able to pick and choose. However, once I pick something the way it splits in onChangeSpPersonEvent, it just displays 'i:0'