You need to sign in to do that
Don't have an account?
brooks
getting into sControls . . .
Hi. Is it theoretically possible to convert data for an object (say, Opportunities) into an XML format with an sControl?
More broadly, can anyone point me to the best uses of sControls so far. (If several were listed and described on one document that would be great.) I mean, why sControls? What makes them an essential part of a developer's toolkit?
Thanks,
Brooks
More broadly, can anyone point me to the best uses of sControls so far. (If several were listed and described on one document that would be great.) I mean, why sControls? What makes them an essential part of a developer's toolkit?
Thanks,
Brooks
adamg,
Hi. Yes, but in addition to the UI, sControls allow you to get PAST the UI, right?, the the data in the object itself. Again, I'd like to convert my data to XML using an sControl. Any reason why that wouldn't work?
Thanks,
Brooks
Joining 2 or more tables back up again is WIP.
there are some tips / lessons learned burried in here if you are going to capture Dynabeans as XML
basicaly I do this
sforceClient.Query() get the data
Serialize the beans into the soap/xml (over the wire) format
save that string into a document
then to unpack
open the document, get the body
b64 decode the body into the soap string
desearialize the string into beans ( xmlparse)
sforceClient.Create() with the array of beans.
If i get this working to re-join the references i will post the entire thing as an appexchange package, however since you asked, here it is, a work in progress Code:
...
Im particular interested to know what the keyvalpairs refers to in first function, and in the second, the relevance of the
In fact you are running throught all elements of the form the the form.elements[i].name and the element-name is the name of the element you are interested in.
That's all
Regards
I don't know why you would do that when you can use ids and request the element directly using document.getElementById([elementid]).
While it may not impact your particular implementation, iterating all the elements of a form is a bad practice that will lead to poor performance. Even if you didn't have ids on all your elements, you should still try to minimize the number of form elements to consider by using document.getElementsByTagName("input") or some other create mechanism.
Cheers
You 'll make me blush:smileywink:
I think that may be by the force of the habit (not sure it is proper english) tell me the proper expression
Of course Dave is quite right on this. I will add this on my list to modify my s-controls
Regards