Re: [Xsltforms-support] question about conversion from ubiquity
Brought to you by:
alain-couthures
From: <ch...@el...> - 2020-01-23 01:22:12
|
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>Hi, I am sending you a sample by direct email.</div><div><br></div><div>I was mistaken about only needing two pieces of data.</div><div>This is a billing application and the form is used to edit bill fields.</div><div>Most of the fields can be edited. The there are three submission actions,</div><div>one is to save the bill changes, one is to do a preview of what the</div><div>new data looks like in our bill format, and the last one is to </div><div>do a print of the bill. All use post and call CGI scripts to</div><div>do the work.<br></div><div><br></div><div>Thanks!</div><div><br></div><div>Chris Howard</div><div><br></div><div><br></div><blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;"> <div id="wmQuoteWrapper"> -------- Original Message --------<br> Subject: Re: [Xsltforms-support] question about conversion from ubiquity<br> From: Tim Thompson <<a href="mailto:tim...@gm...">tim...@gm...</a>><br> Date: Wed, January 22, 2020 12:59 pm<br> To: <a href="mailto:ch...@el...">ch...@el...</a><br> Cc: "<a href="mailto:xsl...@li...">xsl...@li...</a>"<br> <<a href="mailto:xsl...@li...">xsl...@li...</a>><br> <br> <div dir="ltr"><div>Chris,</div><div><br></div><div>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. <br></div><div><br></div><div>Best regards,</div><div>Tim<br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<br>Tim A. Thompson<br>Discovery Metadata Librarian<br>Yale University Library<br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2020 at 8:05 AM <<a target="_blank" href="mailto:ch...@el...">ch...@el...</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="font-family:Verdana;color:rgb(0,0,0);font-size:10pt"><div><br></div><div>I'm still working on this off and on without success.</div><div>POST doesn't seem to be sending anything at all.</div><div><br></div><div>I only need a couple of pieces of information, maybe I will switch to GET.</div><div><br></div><div>Here is my submission block:<br></div><div><br></div><div> <xf:submission resource="<a href="https://xxxx.yyyy.zzz/cgi-bin/XMLSave1" target="_blank">https://xxxx.yyyy.zzz/cgi-bin/XMLSave1</a>" method="post" id="sendStuff"><br> <xf:action ev:event="xforms-submit"><br> </xf:action><br> </xf:submission><br><br></div><blockquote id="gmail-m_7663966487183015384replyBlockquote" style="border-left:2px solid blue;margin-left:8px;padding-left:8px;font-size:10pt;color:black;font-family:verdana"> <div id="gmail-m_7663966487183015384wmQuoteWrapper"> -------- Original Message --------<br> Subject: Re: [Xsltforms-support] question about conversion from ubiquity<br> From: Alain Couthures <<a href="mailto:ala...@ag..." target="_blank">ala...@ag...</a>><br> Date: Thu, January 16, 2020 10:54 am<br> To: Chris Howard <<a href="mailto:ch...@el..." target="_blank">ch...@el...</a>>,<br> <a href="mailto:xsl...@li..." target="_blank">xsl...@li...</a><br> <br> <div> Hello Chris, </div> <div> <br> </div> <div> Did you check the HTTP request body with the browser network debugger? </div> <div> <br> </div> <div> --Alain </div> <div> <br> </div> <blockquote type="cite" style="border-left:2px solid blue;margin-left:8px;padding-left:8px"> <div> Le 16 janvier 2020 à 13:09, Chris Howard < <a href="mailto:ch...@el..." target="_blank">ch...@el...</a>> a écrit : </div> <div> <br> </div> <div> <br> </div> <div> Hello, </div> <div> <br> </div> <div> I have run into another issue: </div> <div> <br> </div> <div> I am using a CGI perl script and a submission button which calls the script. </div> <div> The script gets some data from the POSTDATA and does some actions. </div> <div> <br> </div> <div> My forms using xsltforms library are not sending any POST data. </div> <div> The script is being called, but no data. </div> <div> <br> </div> <div> I tried also with one of the sample forms, substituting in my own perl </div> <div> CGI as the action, </div> <div> still no POST data showing up. </div> <div> <br> </div> <div> Can you give me some pointers as to where I should be looking? </div> <div> Is this an issue with the web server config? I am not seeing any errors </div> <div> in the </div> <div> log files, just no POST data coming through. </div> <div> <br> </div> <div> Thanks </div> <div> <br> </div> <div> Chris Howard </div> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> On 1/12/20 7:06 AM, Chris Howard wrote: </div> <blockquote type="cite" style="border-left:2px solid blue;margin-left:8px;padding-left:8px"> <div> Hi, </div> <div> <br> </div> <div> I spent some time with the samples and sorted it out. </div> <div> The big first item was adding xmlns="" in the top-level instance data </div> <div> tag. </div> <div> Then I started seeing my instance data. </div> <div> <br> </div> <div> Then I worked out some issues with stylesheet (also covered in the </div> <div> examples). </div> <div> <br> </div> <div> I very much appreciate your help! </div> <div> <br> </div> <div> Chris </div> <div> <br> </div> <div> <br> </div> <div> On 1/11/20 8:41 AM, Alain Couthures wrote: </div> <blockquote type="cite" style="border-left:2px solid blue;margin-left:8px;padding-left:8px"> <div> Hello Chris, </div> <div> <br> </div> <div> As far as I remember, Ubiquity had a limitation about models not to </div> <div> be declared in head section but in body section. </div> <div> <br> </div> <div> I suggest you to first check that XSLTForms samples are OK for you. </div> <div> Then, to compare with Ubiquity. </div> <div> <br> </div> <div> If possible, please don't hesitate to send a full form source. </div> <div> <br> </div> <div> Thank you for your feedback! </div> <div> <br> </div> <div> --Alain </div> <div> <br> </div> <div> <br> </div> <div> Le 11/01/2020 à 15:04, Chris Howard a écrit : </div> <div> > </div> <blockquote type="cite" style="border-left:2px solid blue;margin-left:8px;padding-left:8px"> <div> Update, </div> <div> <br> </div> <div> I have been simplifying my form this morning and even with all of </div> <div> the triggers </div> <div> and events stripped out, I still don't see any of my data. </div> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> On 1/11/20 7:17 AM, Chris Howard wrote: </div> <blockquote type="cite" style="border-left:2px solid blue;margin-left:8px;padding-left:8px"> <div> Hi, </div> <div> <br> </div> <div> Many years ago I worked on a xform which would allow editing of </div> <div> an XML file. I didn't know a lot about XSLT or XForms but I was </div> <div> able to cook up something that worked. </div> <div> <br> </div> <div> We used the ubiquity library. </div> <div> <br> </div> <div> Recently the form quit working. </div> <div> I am remote from the situation such that I cannot directly debug </div> <div> the problem. </div> <div> There are other people working on that. </div> <div> <br> </div> <div> I've been given the task of researching a replacement for the </div> <div> ancient ubiquity library. </div> <div> <br> </div> <div> I have the xsltforms package installed on our web server and I can </div> <div> run some sample forms. </div> <div> It looks like the xsltforms content is being sent to the browser, </div> <div> so I think my </div> <div> basic plumbing is working ok. </div> <div> <br> </div> <div> My problem is that our form never seems to activate. I get the </div> <div> screen drawn </div> <div> but none of my DOMActivate events seem to perform. Also my submit </div> <div> buttons </div> <div> do not work. None of my instance data is showing up in the form. </div> <div> <br> </div> <div> I am looking for any help or advise that might be available </div> <div> <br> </div> <div> My triggers look like this: </div> <div> <br> </div> <div> <xf:trigger bind="detailSpecial"> </div> <div> <br> </div> <div> <xf:label>Insert tax/total Item</xf:label> </div> <div> <br> </div> <div> <xf:action ev:event="DOMActivate"> </div> <div> <br> </div> <div> <xf:insert </div> <div> nodeset="/bill/billDetail/detailSpecialSet/detailSpecial" </div> <div> at="index('repeat-detailSpecial')" position="before"/> </div> <div> <br> </div> <div> <xf:setvalue </div> <div> ref="/bill/billDetail/detailSpecialSet/detailSpecial[index('repeat-detailSpecial')]/specialDescription"></xf:setvalue> </div> <div> <br> </div> <div> <xf:setvalue </div> <div> ref="/bill/billDetail/detailSpecialSet/detailSpecial[index('repeat-detailSpecial')]/charge"></xf:setvalue> </div> <div> <br> </div> <div> </xf:action> </div> <div> <br> </div> <div> </xf:trigger> </div> <div> <br> </div> <div> <xf:trigger bind="detailSpecial"> </div> <div> <br> </div> <div> <xf:label>Delete tax/total Item</xf:label> </div> <div> <br> </div> <div> <xf:delete ev:event="DOMActivate" </div> <div> nodeset="/bill/billDetail/detailSpecialSet/detailSpecial" </div> <div> at="index('repeat-detailSpecial')"/> </div> <div> <br> </div> <div> </xf:trigger> </div> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> _______________________________________________ </div> <div> Xsltforms-support mailing list </div> <div> <a href="mailto:Xsl...@li..." target="_blank">Xsl...@li...</a> </div> <div> <a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" rel="noopener" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> </div> </blockquote> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> _______________________________________________ </div> <div> Xsltforms-support mailing list </div> <div> <a href="mailto:Xsl...@li..." target="_blank">Xsl...@li...</a> </div> <div> <a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" rel="noopener" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> </div> </blockquote> <div> <br> </div> <div> <br> </div> <div> <br> </div> </blockquote> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> _______________________________________________ </div> <div> Xsltforms-support mailing list </div> <div> <a href="mailto:Xsl...@li..." target="_blank">Xsl...@li...</a> </div> <div> <a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" rel="noopener" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> </div> </blockquote> <div> <br> </div> <div> <br> </div> <div> <br> </div> <div> _______________________________________________ </div> <div> Xsltforms-support mailing list </div> <div> <a href="mailto:Xsl...@li..." target="_blank">Xsl...@li...</a> </div> <div> <a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" rel="noopener" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> </div> </blockquote> </div> </blockquote></span></div> _______________________________________________<br> Xsltforms-support mailing list<br> <a href="mailto:Xsl...@li..." target="_blank">Xsl...@li...</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a><br> </blockquote></div> </div> </blockquote></span></body></html> |