How to show filtered(by selection) data?

A place for users and developers of the Xataface to discuss and receive support.

How to show filtered(by selection) data?

Postby zmmaj » Sat Oct 13, 2012 3:58 pm

This is kinda hard to explain..
One of my table have external links...
Table is Called 'Manuals'
there is ID,manufacturrer,Type,year.link

So what is goal?
I need page where user can select first 'manufacturer', than depend on that selection to select 'Type', than
depend on previous 2 selection to select 'year', and after that to see list of related ( mached ) links...
In these sellection fileds 'Type' and 'year' can be empty.

how to do that?
Also I need a way ( for Administrator, and MODERATOR ) to put links in table 'Manuals'...

tnx
zmmaj
 
Posts: 48
Joined: Tue Sep 25, 2012 10:34 pm

Re: How to show filtered(by selection) data?

Postby zmmaj » Mon Oct 15, 2012 2:59 pm

OK... solution FIND is quite alternative and good for search thry database...
But I have a problem to display founded data...
Or to be more precise , I have problem to display ANY data related to html area widget,,,
Problem is next>
If I put inside ( html area with FCK editor) Some text and some pictures, in detailed wiev I can't see what I put inside...
Instead i see html source code of Editor for all text...

How to display html area, just I type inside?

tnx
zmmaj
 
Posts: 48
Joined: Tue Sep 25, 2012 10:34 pm

Re: How to show filtered(by selection) data?

Postby zmmaj » Mon Oct 15, 2012 10:52 pm

Maybe you don't understand what is a problem...
here is example
if i wrote in html area (FCK editor) this
Code: Select all
For Suzuki Grand Vitara JB416 and JB420

Section :
Engine, Engine Electrical Devices, Engine Mechanical, Cooling, Fuel system, Exhaust System, Suspension, Driveline, Brake Transmission / Transaxle, Steering, HVAC, Restraint, Control System, etc.

Download : Part1 | Part2



after saving, I can't see that what i write... Instead I see ( in previev, and details) next

Code: Select all
<p>For Suzuki Grand Vitara JB416 and JB420</p>
<p>Section :<br />
Engine, Engine Electrical Devices, Engine Mechanical, Cooling, <span id="IL_AD3" class="IL_AD">Fuel system</span>, Exhaust System, Suspension, Driveline, Brake Transmission / Transaxle, Steering, HVAC, Restraint, Control System, etc.</p>
<p>Download : <a target="_blank" href="http://pdftown.com/u/sgv1/">Part1</a> | <a target="_blank" href="http://pdftown.com/u/sgv2/">Part2</a></p>


tnx in advance...
zmmaj
 
Posts: 48
Joined: Tue Sep 25, 2012 10:34 pm

Re: How to show filtered(by selection) data?

Postby shannah » Tue Oct 16, 2012 7:01 am

Are you using 1.3.2 or 2.0.

2.0 now escapes the output of htmlarea fields by default for security reasons. The reason is that if your application allows untrusted users to edit records with an HTML area field, then they may be able to embed malicious javascript as part of the field content that would be displayed next time the page is rendered. This is an easy problem to work around (either by not allowing untrusted users to edit fields with htmlarea or by sanitizing the html input to prevent XSS attacks), but escaping it by default is just the safest way.

You can disable this on a field-by-field basis by adding the passthru directive to the field definition in the fileds.ini file.

Code: Select all
[myfield]
    widget:type=htmlarea
    passthru=1


-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: How to show filtered(by selection) data?

Postby zmmaj » Tue Oct 16, 2012 7:37 am

I don't know what version I use now,,,
I was try with lattest buth more than half modules do not work...
now in file 'version.txt' is 1.9 3856

with this version I have problem with Ajax_upload module.. wont work,,,
So, Again I can't make Email module to work...:(

I will try with your code... now
tnx...
zmmaj
 
Posts: 48
Joined: Tue Sep 25, 2012 10:34 pm

Re: How to show filtered(by selection) data?

Postby zmmaj » Tue Oct 16, 2012 7:41 am

YES... work as I wish :)))
Hej man.. why you haven't somewhere this trick on WIKI...
I was spent 2 days searching some solution, and nothing :(

tnx again :)
zmmaj
 
Posts: 48
Joined: Tue Sep 25, 2012 10:34 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved