Hi, I am sending you a sample by direct email.
I was mistaken about only needing two pieces of data.
This is a billing application and the form is used to edit bill fields.
Most of the fields can be edited. The there are three submission actions,
one is to save the bill changes, one is to do a preview of what the
new data looks like in our bill format, and the last one is to
do a print of the bill. All use post and call CGI scripts to
do the work.
Thanks!
Chris Howard
-------- Original Message --------
Subject: Re: [Xsltforms-support] question about conversion from ubiquity
From: Tim Thompson <[email protected]>
Date: Wed, January 22, 2020 12:59 pm
To: [email protected]
Cc: "[email protected]"
<[email protected]>
Chris,You said that the form is not sending POST data, right? From your snippet, it looks as though you haven't defined a source (or target) instance for the data. What do your XForms instances look like? If you're able to provide a complete example of the form, that would be helpful in troubleshooting.Best regards,Tim--
Tim A. Thompson
Discovery Metadata Librarian
Yale University LibraryOn Wed, Jan 22, 2020 at 8:05 AM <[email protected]> wrote:_______________________________________________I'm still working on this off and on without success.POST doesn't seem to be sending anything at all.I only need a couple of pieces of information, maybe I will switch to GET.Here is my submission block:<xf:submission resource="https://xxxx.yyyy.zzz/cgi-bin/XMLSave1" method="post" id="sendStuff">
<xf:action ev:event="xforms-submit">
</xf:action>
</xf:submission>-------- Original Message --------
Subject: Re: [Xsltforms-support] question about conversion from ubiquity
From: Alain Couthures <[email protected]>
Date: Thu, January 16, 2020 10:54 am
To: Chris Howard <[email protected]>,
[email protected]
Hello Chris,
Did you check the HTTP request body with the browser network debugger?
--Alain
Le 16 janvier 2020 à 13:09, Chris Howard < [email protected]> a écrit :
Hello,
I have run into another issue:
I am using a CGI perl script and a submission button which calls the script.The script gets some data from the POSTDATA and does some actions.
My forms using xsltforms library are not sending any POST data.The script is being called, but no data.
I tried also with one of the sample forms, substituting in my own perlCGI as the action,still no POST data showing up.
Can you give me some pointers as to where I should be looking?Is this an issue with the web server config? I am not seeing any errorsin thelog files, just no POST data coming through.
Thanks
Chris Howard
On 1/12/20 7:06 AM, Chris Howard wrote:Hi,
I spent some time with the samples and sorted it out.The big first item was adding xmlns="" in the top-level instance datatag.Then I started seeing my instance data.
Then I worked out some issues with stylesheet (also covered in theexamples).
I very much appreciate your help!
Chris
On 1/11/20 8:41 AM, Alain Couthures wrote:Hello Chris,
As far as I remember, Ubiquity had a limitation about models not tobe declared in head section but in body section.
I suggest you to first check that XSLTForms samples are OK for you.Then, to compare with Ubiquity.
If possible, please don't hesitate to send a full form source.
Thank you for your feedback!
--Alain
Le 11/01/2020 à 15:04, Chris Howard a écrit :>Update,
I have been simplifying my form this morning and even with all ofthe triggersand events stripped out, I still don't see any of my data.
On 1/11/20 7:17 AM, Chris Howard wrote:Hi,
Many years ago I worked on a xform which would allow editing ofan XML file. I didn't know a lot about XSLT or XForms but I wasable to cook up something that worked.
We used the ubiquity library.
Recently the form quit working.I am remote from the situation such that I cannot directly debugthe problem.There are other people working on that.
I've been given the task of researching a replacement for theancient ubiquity library.
I have the xsltforms package installed on our web server and I canrun some sample forms.It looks like the xsltforms content is being sent to the browser,so I think mybasic plumbing is working ok.
My problem is that our form never seems to activate. I get thescreen drawnbut none of my DOMActivate events seem to perform. Also my submitbuttonsdo not work. None of my instance data is showing up in the form.
I am looking for any help or advise that might be available
My triggers look like this:
<xf:trigger bind="detailSpecial">
<xf:label>Insert tax/total Item</xf:label>
<xf:action ev:event="DOMActivate">
<xf:insertnodeset="/bill/billDetail/detailSpecialSet/detailSpecial"at="index('repeat-detailSpecial')" position="before"/>
<xf:setvalueref="/bill/billDetail/detailSpecialSet/detailSpecial[index('repeat-detailSpecial')]/specialDescription"></xf:setvalue>
<xf:setvalueref="/bill/billDetail/detailSpecialSet/detailSpecial[index('repeat-detailSpecial')]/charge"></xf:setvalue>
</xf:action>
</xf:trigger>
<xf:trigger bind="detailSpecial">
<xf:label>Delete tax/total Item</xf:label>
<xf:delete ev:event="DOMActivate"nodeset="/bill/billDetail/detailSpecialSet/detailSpecial"at="index('repeat-detailSpecial')"/>
</xf:trigger>
_______________________________________________Xsltforms-support mailing list
_______________________________________________Xsltforms-support mailing list
_______________________________________________Xsltforms-support mailing list
_______________________________________________Xsltforms-support mailing list
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
