Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
SetAttributeByID imProfileAttributeID.imProfileCustom8 Does Not Work
4u2cnnv
Attached is the code I am using to change the custom8 profile I have done everything thats required, and I tried using both the document object directly and the profile object from the document to make changes to the imProfileAttributeID.imProfileCustom8 but still not luck: about the code attached, the attrib.aspx file gets run inside an iframe, of which the iframe is inside of a connector I have created. The page gets run on a page load call. The bigger picture: I have in the connector hyperlinks that change the location of the iframe by adding QueryStrings to the location of the attrib.aspx file. The file attrib.aspx is then trigger with the new params viz: nrtid (doc id), myname (new value for custom8), alname (name of the current workspace). I have come to a halt and need help on this issue
thank you in advance
Sabata Mereeotlhe - MCP
Find more posts tagged with
Comments
jny
Does this custom8 value, that you would like to set to, already exist in the database? Please keep in mind that custom lookup field values cannot be set unless they have already been entered into the database.
4u2cnnv
Hi jny and thank you for your time
I did manage to get it working, I changed my approach though. Instaed of having a script login and get the doc and set attributes I made a client side script which invokes a webservice which then eventaully runs the copy and paste of the earlier code that just didnt want to work, and works well. another problem though, when I objDoc.Update() its works fine but until I relogin the changes are not visible, so I did a work around for that that would deceive the user temporarily. One thing I noticed is when you actually change the profile properties of a document via the original interface a refresh occurs. at the same time my documents would be update, but without that my documents remain unchanged even though in the DB they have change. I hope all this makes sense. how I know whether or not a change has occurred, on the clientside I use icons viz: assigned and unassigned.gif. But anyway the solution works for me and I was just curious about the data refreshing.
Thank you again
jny
I think while the update call stores the profile changes in the database, the Refresh call fetches this latest update from the server.