SharePoint 2013: Using WPQ2FormCtx to read list item information [FAIL]

%3CLINGO-SUB%20id%3D%22lingo-sub-891258%22%20slang%3D%22en-US%22%3ESharePoint%202013%3A%20Using%20WPQ2FormCtx%20to%20read%20list%20item%20information%20%5BFAIL%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891258%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20every%20one%2C%3C%2FP%3E%3CP%3EOne%20day%2C%20i%20had%20just%20read%20one%20topic%3CSPAN%3E%26nbsp%3B%5B%3C%2FSPAN%3E%3CI%3ESharePoint%202013%3A%20Using%20WPQ2FormCtx%20to%20read%20list%20item%20information%5D-%26nbsp%3B%3C%2FI%3E%3CSPAN%3Ewhich%20holds%20plenty%20of%20useful%20information%20and%20i%20applied%20one%20in%20my%20code%20and%20it%20works%20perfectly.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAnd%20boom%20right%20now%2C%20my%20page%20go%20die.%20I%20don't%20know%20why%20and%20i%20start%20tracing%20and%20debugging%20my%20code%20on%20my%20custom%20webpart.%20The%26nbsp%3B%22WPQ2FormCtx%22%20object%26nbsp%3Bisn't%20exist%20in%20my%20source%20anymore%2C%20it%20changed%20to%26nbsp%3B%3CSTRONG%3EWPQ3FormCtx%20.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAny%20one%20have%20an%20idea%20about%20this.%20I%20wonder%20Microsoft%20updated%20some%20stuff%3F.%3C%2FP%3E%3CP%3ECan%20anyone%20give%20me%20a%20clue%2C%20a%20way%20to%20get%20the%20name%20of%20this%20object.%20Or%20the%20way%20you%20used%20to%26nbsp%3Bread%20list%20item%20information.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHave%20a%20nice%20day%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-893701%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%202013%3A%20Using%20WPQ2FormCtx%20to%20read%20list%20item%20information%20%5BFAIL%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-893701%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F419474%22%20target%3D%22_blank%22%3E%40Zwartlk%3C%2FA%3E%26nbsp%3BAFAIK%2C%20this%20is%20technically%20an%20internal%20value%20that%20is%20subject%20to%20change.%26nbsp%3B%20What%20it%20seems%20like%20happened%2C%20is%20the%20page%20was%20edited%20at%20some%20point%20and%20a%20web%20part%20was%20changed%2Fmodified%2C%20and%20it%20created%20a%20new%20context%20variable.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi every one,

One day, i had just read one topic [SharePoint 2013: Using WPQ2FormCtx to read list item information]- which holds plenty of useful information and i applied one in my code and it works perfectly.

And boom right now, my page go die. I don't know why and i start tracing and debugging my code on my custom webpart. The "WPQ2FormCtx" object isn't exist in my source anymore, it changed to WPQ3FormCtx . 

Any one have an idea about this. I wonder Microsoft updated some stuff?.

Can anyone give me a clue, a way to get the name of this object. Or the way you used to read list item information.

 

Have a nice day

Thanks

 

1 Reply
Highlighted

@Zwartlk AFAIK, this is technically an internal value that is subject to change.  What it seems like happened, is the page was edited at some point and a web part was changed/modified, and it created a new context variable.