Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
>So, are you trying to pass a company name through a URL? Seems to me that would be problematic. Yes, that's what I'm trying and I was hoping there is a easy fix. Thank you for your help! I think I will stop here for now. On Wednesday, January 20, 2021 at 3:52:04 PM UTC-6 Jim S wrote: >

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
So, are you trying to pass a company name through a URL? Seems to me that would be problematic. If that is what you're doing maybe you need to look at urllib unquote_plus. I use that in some cases to build valid URLs where the text can be unpredictable. Is there anything else you could pass

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
ok, so this is four parameters I'm passing.. J2831 AL04 36105 HYUNDAI MOTOR MANUFACTURI then list.xxx or XML(list.xxx) actually shows the same result. It replaced blank with "_"... that's why I failed to get the data from the database because the original value doesn't have "_". I also

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
So, if you would do a for look around 'lists' and print out the field values, what would that look like? Also, is there a difference if you also print it out with the XML function wrapped around it? On Wed, Jan 20, 2021 at 2:03 PM Omi Chiba wrote: > here's the controller for enduser_index

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
here's the controller for enduser_index view. It's like I have this index view to list and lick "View" button to pass the variable and go to enduser_view page. def enduser_index(): response.title = 'List' response.subtitle = 'End User Code' form=SQLFORM.factory(Field('search'))

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
I thought you were trying to get it working in this html tag: View< I don't see the 'list' variable in the controller... Where is that coming from? -Jim On Wed, Jan 20, 2021 at 1:49 PM Omi Chiba wrote: > I'm not sure how to check... > > This is my controller for view page > > def

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
I'm not sure how to check... This is my controller for view page def enduser_view(): response.title = 'View' response.subtitle = 'End User Code' request.args(0) or redirect (URL('enduser_index')) record = db.EDXUSF00(db.EDXUSF00.USDIID==request.args(0) and

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
I don't think it will help to change the controller side. In the controller can you print out the values and also print out the XML(value) and see what the difference is? -Jim On Wed, Jan 20, 2021 at 10:36 AM Omi Chiba wrote: > I added XML. It doesn't show the error but cannot get the value

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
I added XML. It doesn't show the error but cannot get the value and shows the records... should we changed the controller side too? View View Controller record = db.EDXUSF00(db.EDXUSF00.USDIID==request.args(0) and db.EDXUSF00.USDICD==request.args(1) and

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-18 Thread Omi Chiba
JIm, Thank you for your reply! I will test it later this week and let you guys know. On Monday, January 18, 2021 at 12:58:43 PM UTC-6 Jim S wrote: > Can you wrap it in an XML function? > > class="icon-search"> View > > On Wednesday, January 13, 2021 at 4:03:54 PM UTC-6 Omi Chiba wrote: > >>

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-18 Thread Jim S
Can you wrap it in an XML function? View On Wednesday, January 13, 2021 at 4:03:54 PM UTC-6 Omi Chiba wrote: > In another word, how I can encode and decode the value including special > characters such as "&". > >

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-13 Thread Omi Chiba
In another word, how I can encode and decode the value including special characters such as "&". https://help.marklogic.com/Knowledgebase/Article/View/using-url-encoding-to-handle-special-characters-in-a-document-uri On Wednesday, January 13, 2021 at 8:24:22 AM UTC-6 Omi Chiba wrote: > Hi, the