CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Passing sort Parameters in PHP

Print topic Send  topic

Author Message
Jean Bergeron
Posted: 06/01/2002, 7:57 PM

Hello,

I try to transform in PHP the exemple of the Tasks :
http://www.gotocode.com/art.asp?art_id=125

I translate the Open event on the grid before the record:
{
if ($GetParam["FormTasks_Sorting"]!="")

$FormTasks_Sorting_session=$GetParam["FormTasks_Sorting"];
else
$FormTasks_Sorting_session="";
}
{
if ($GetParam["FormTasks_Page"]!="")
$FormTasks_Page_session=$GetParam["FormTasks_Page"];
else
$FormTasks_Page_session="";
}

and then
I translate the before Execute and Before Cancel of the Record:

$sActionFileName=$sActionFileName."?FormTasks_Sorting="."FormTasks_Sorting".
"&FormTasks_Page="."FormTasks_Page";

Obviously something is wrong. Let's me explain my page: I have first a
search for the people. It returns a first grid of the people bearing this
family name. When I click on one of them, it returns the lists of documents
for this person as second grid. Then I click on a document and it gave me
the record of this document. Everything is fine but I still loose the order
of the people and of theirs documents.

If somebody could tell me what I am doing wrong, I will really appreciate.


--
Jean Bergeron



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.368 / Virus Database: 204 - Release Date: 29/05/2002

Sixto Luis Santos
Posted: 06/02/2002, 11:00 AM

Hello Jean,

Well, your code is just a little off... :)

Here's the correct translation:


// Open event ------------------------------
// ---------------------------------------------
if(get_param("FormTasks_Sorting")!="")
set_session("FormTasks_Sorting",get_param("FormTasks_Sorting"));
else
set_session("FormTasks_Sorting","");

if(get_param("FormTasks_Page")!="")
set_session("FormTasks_Page",get_param("FormTasks_Page"));
else
set_session("FormTasks_Page","");



// Before Execute + Before Cancel ------------------
// ---------------------------------------------------------
$sActionFileName.="?FormTasks_Sorting=".get_session("FormTasks_Sorting")."&F
ormTasks_Page=".get_session("FormTasks_Page");
// Uncomment and use the following instead of the above if the form has
transfer input parameters
//
$sParams.="&FormTasks_Sorting=".get_session("FormTasks_Sorting")."&FormTasks
_Page=".get_session("FormTasks_Page");


Regards,
Sixto



"Jean Bergeron" <editberg@qc.aira.com> wrote in message
news:adc1ir$ma6$1@news.codecharge.com...
> Hello,
>
> I try to transform in PHP the exemple of the Tasks :
> http://www.gotocode.com/art.asp?art_id=125
>
> I translate the Open event on the grid before the record:
> {
> if ($GetParam["FormTasks_Sorting"]!="")
>
> $FormTasks_Sorting_session=$GetParam["FormTasks_Sorting"];
> else
> $FormTasks_Sorting_session="";
> }
> {
> if ($GetParam["FormTasks_Page"]!="")
> $FormTasks_Page_session=$GetParam["FormTasks_Page"];
> else
> $FormTasks_Page_session="";
> }
>
> and then
> I translate the before Execute and Before Cancel of the Record:
>
>
$sActionFileName=$sActionFileName."?FormTasks_Sorting="."FormTasks_Sorting".
> "&FormTasks_Page="."FormTasks_Page";
>
> Obviously something is wrong. Let's me explain my page: I have first a
> search for the people. It returns a first grid of the people bearing this
> family name. When I click on one of them, it returns the lists of
documents
> for this person as second grid. Then I click on a document and it gave me
> the record of this document. Everything is fine but I still loose the
order
> of the people and of theirs documents.
>
> If somebody could tell me what I am doing wrong, I will really appreciate.
>
>
> --
> Jean Bergeron
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.368 / Virus Database: 204 - Release Date: 29/05/2002
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.