function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amegi18Amegi18 

How do you pass an xml variable to an apex ext class?

Hi, I am exporting an excel file using xml. 
I'm thinking of passing the page number to my apex ext class 
but I don't know how to use variables in xml then be passed in apex.


Isn't this how to set the page number on the footer of the worksheet?
       <Footer x:Margin="0.3" x:Data="&P/&N Page"/>

 

--> results as 1/2 Page

Can somebody please tell me how to pass that &P  in an apex class?

I usually use <apex:param> for passing variables but in this case,
I don't have the slightest idea how.

Thanks in Advance

SRKSRK
where you have write this "<Footer x:Margin="0.3" x:Data="&P/&N Page"/>"
because i believe there is no "<Footer> " tag in VF

& if it just a string in VF then you can pass it by any mean
one way is
create a <apex:inputhidden value="{!stringpropertyofapexclass}"> & on a event call javascript & set the value in hiddent field using document.getelementbyid("hidienfieldID").value
& call a action fuction
Amegi18Amegi18

Good Morning,

 
Thank you for the reply. 
 
Umm,, as I said in the topic, I need to pass an xml variable..
The VF page I am doing is for exporting data into MS Excel.
And the code is done through xml and apex.
The <Footer x:Margin="0.3" x:Data="&P/&N Page"/>" is an xml tag
and I wish to pass the value of "&P" to my apex ext class.
 
Do you have an Idea as to what am I supposed to do?