Monday, 15 June 2015

SharePoint: Field value different when editing than when displayed -



SharePoint: Field value different when editing than when displayed -

when @ field, either via dispform (individual item) or view of list, see value. when take edit field, value shown in effect different see in view.

this happens sometimes--too comfortable.

i cannot imagine how can happen. ideas?

here row from, say, allitems:

and here row in edit mode:

here's how situation described in original posting has worked out.

as ondreij asked, field in question selection field. status field provided in email sent sharepoint, , utilize value populate field in question.

what appears have happened string got written some part of list. when checked value of field after writing (using edit facility), found "real" value had not changed default "0".

there couple problems. in 1 case, had listed 1 of selection values "...bc..." original status string uses "...bureau coordinator..." 1 easy. case has "...to..." in selection strings status value passed "...to..." sneakier.

but big surprise status 4, none of can tell difference between status value , selection value. there must difference, because next code shows, replacing status string selection string allows finish designed.

if(status.indexof("2 - sent") > -1) status = "2 - sent bc";

if(status.indexof("3 - sent") > -1) status = "3 - sent gfss";

if(status.indexof("4 - accepted") > -1) status = "4 - accepted gfss";

thanks, ondreij, thoughts led solution.

sharepoint-2007

No comments:

Post a Comment