Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Keep the changes between client and server? (Read 3769 times)
foucault
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Apr 16th, 2007
Keep the changes between client and server?
Apr 18th, 2007 at 8:16am
Print Post  
Hello again, sorry to ask you so much things

I have an other problem :

I'm using the component in a web application.
On the client side, the user modifies the diagram, so I update the hiddenfield each time he draws something :

Code
Select All
Sub fcx_DocModified()

  form1.HiddenField1.Value = form1.fcx.SaveToString(True)
    end Sub 



I have a button which authorize the user to export to xml. The matter is that the page is reload, so on the server side, I try to get the value of the hidden field :
Code
Select All
myflowChart.LoadFromString(HiddenField1.Value) 


but it raises an error : Error HRESULT E_FAIL has been returned from a call to a COM component.

So, I would like to know if it's possible to get, on the server side, the modifications done by the user on the client side?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Keep the changes between client and server?
Reply #1 - Apr 18th, 2007 at 9:00am
Print Post  
That should work. Is there anything in the HiddenField1.Value that you get on the server?
  
Back to top
 
IP Logged
 
foucault
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Apr 16th, 2007
Re: Keep the changes between client and server?
Reply #2 - Apr 18th, 2007 at 10:29am
Print Post  
Yes, HiddenField1.value has a huge huge string. Weirdly, I can't print it in a msgbox (probably because of the size) but I arrived to do it on the client side

Here you can see the client side:
http://img68.imageshack.us/my.php?image=hiddenfieldclientli8.jpg

Here you can see the beginning of the value of hiddenfield1.value on the server side

http://img222.imageshack.us/img222/8802/hidedenfieldvalueld8.jpg
But I'm unable to use it in a msgbox, so I think that's why it cannot be used with the LoadFromString







  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Keep the changes between client and server?
Reply #3 - Apr 18th, 2007 at 11:16am
Print Post  
Could you save the string into a file and email it to support@mindfusion.eu? We'll check if it contains a correct value that FlowchartX can load.
  
Back to top
 
IP Logged
 
foucault
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Apr 16th, 2007
Re: Keep the changes between client and server?
Reply #4 - Apr 18th, 2007 at 11:44am
Print Post  
It's not necessary, I finally understood my error : Sooner, to try something else, a collegue adds a reference to the flowchart 3.0 library. When I changed it to 4.1, it works immediately.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Keep the changes between client and server?
Reply #5 - Apr 18th, 2007 at 11:52am
Print Post  
Right - old versions of the control can't load files or strings saved with a newer version.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint