Re: ColdFusion SME

2009-07-09 Thread Pranathi Reddy

SME means Subject Matter expert ..thats what the person said to her... 
I strongly believe it is referring to a person who is strong in that particular 
technology .

Pranathi 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324391
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


ColdFusion SME

2009-07-08 Thread Pranathi Reddy

Hi All,

May be this is not related to technical question but I came across this word 
many times and wanna know .. What is Coldfusion SME or Coldfusion SME candidate?

In software engineering - SME is Subject Matter Expert...

Is Coldfusion SME is same as SME...?

Can anyone explain me in detail?

Thanx in advance...

Pranathi. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324369
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion SME

2009-07-08 Thread Pranathi Reddy

Alright.. too many guessing and thats for all for the response. I really dont 
know which one would be right.. Let me quote you where it was used and how it 
was used... May be this can help us to guess the right one...

One of my friends were applying for Coldfusion position and a person told her 
that they should need a 'Coldfusion SME candidate that are local to Alabama' . 
Those were the exacty quote in the brackets...

I am assuming may be he is looking for a person who is expertise in 
Coldfusion... is that right?

Pranathi.

David McGuigan said the following on 7/8/2009 11:12 PM:

 PHP developer 2: Eff my life.

So, what is the meaning of Eff?
(this can go on and on...)

-- 
Best regards,

Chris Montgomery 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


redirect page

2009-05-22 Thread Pranathi Reddy

Hi ,

I am trying to move back one directory and redirect the page to another page.
eg: I am at page 
http:/localhost/Extradirectory/newfile.cfm and I want to redirect to the 
index.cfm at http:/localhost/newfile.cfm if condition satisfies.

I am using cflocation to direct to another page but I am at path 
/inetpub/project1/Extradirectory/newfile.cfm and my .cfm file is in path 
/inetpub/project1/index.cfm

cfif name ='David'
cflocation url=index.cfm
/cfif -- it throws an error says file not found.

Can any one have any suggestions fro me.

Thanks in Advance,
Pranathi.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322717
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: redirect page

2009-05-22 Thread Pranathi Reddy

Thanks alot... Marius.. It worked


You hav eto go up one directory,try:

cfif name ='David'
cflocation url=../index.cfm
/cfif --

Marius 

Hi ,

I am trying to move back one directory and redirect the page to another
page.
eg: I am at page 
http:/localhost/Extradirectory/newfile.cfm and I want to redirect to the
index.cfm at http:/localhost/newfile.cfm if condition satisfies.

I am using cflocation to direct to another page but I am at path
/inetpub/project1/Extradirectory/newfile.cfm and my .cfm file is in path
/inetpub/project1/index.cfm

cfif name ='David'
cflocation url=index.cfm
/cfif -- it throws an error says file not found.

Can any one have any suggestions fro me.

Thanks in Advance,
Pranathi. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322721
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: redirect page

2009-05-22 Thread Pranathi Reddy

I can redirect it but have a new problem now ... I am unable to access the 
session variables.. 
I have to access the session varaibles declared in newfile.cfm.
If I browse separately then I can but if I redirect and work on it it doesnt.

Any ideas..

r u sure this will work the same in all doctypes?
--
Ryan





 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322734
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: redirect page

2009-05-22 Thread Pranathi Reddy

/inetpub/project1/application.cfc
/inetpub/project1/index.cfm
/inetpub/project1/Extradirectory/newfile.cfm

Moving from newfile.cfm to index.cfm

where is ur application.cfm?
--
Ryan



On Fri, May 22, 2009 at 12:54 PM, Pranathi Reddy rk.prana...@gmail.comwrote:

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322738
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: redirect page

2009-05-22 Thread Pranathi Reddy

I figured it out .. i was deleting the sessions at the index.cfm so 
sessions are cleared 
Sorry I wasted your time

Pranathi...

show me ur application.cfc

--
Ryan





 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322754
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Set column value to NULL

2009-04-28 Thread Pranathi Reddy

My image datatype is varbinary(max) and I am storing binary image data in 
database.
This query works fine in sql Server 2005 to set the attribute to 'Null'(delete 
binary data) but wat if I wanna use in coldfusion8 cfquery

update table1 set image = null where empid ='@id'

I tried using 
cfquery name=Qry_DeleteImage datasource=#application.datasource#
Update table1 
SET image = cfqueryparam cfsqltype=CF_SQL_VARBINARY  
null=true value= ''
WHERE   empID=cfqueryparam cfsqltype=CF_SQL_VARCHAR 
value=#session.ID#
/cfquery

How do I actually set the attribute value to null in coldfusion.

Thanks,
Priya 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322022
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Set column value to NULL

2009-04-28 Thread Pranathi Reddy

My image datatype is varbinary(max) and I am storing binary image data in 
database.
This query works fine in sql Server 2005 to set the attribute to 'Null'(delete 
binary data) but wat if I wanna use in coldfusion8 cfquery

update table1 set image = null where empid ='@id'

I tried using 
cfquery name=Qry_DeleteImage datasource=#application.datasource#
Update table1 
SET image = cfqueryparam cfsqltype=CF_SQL_VARBINARY  
null=true value= ''
WHERE   empID=cfqueryparam cfsqltype=CF_SQL_VARCHAR 
value=#session.ID#
/cfquery

How do I actually set the attribute value to null in coldfusion.

Thanks,
Priya 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322023
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Set column value to NULL

2009-04-28 Thread Pranathi Reddy

Thanks All for help,

setting Image=NULL worked for me...


Replace the cfqueryparam tag with the word NULL without quotes.

-Mike Chabot


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Validation of Fields

2009-04-23 Thread Pranathi Reddy

Hi,

I am confused of wat really hve to do to display error window popup if error 
occurs.
eg:cfform
   cfinput type=text name=name1value=
   cfinput type=Submit name=Submitvalue=Submit
/cfform
cfif isDefined(form.Submit)
cfif not isnumeric(form.name1)
cfotputPlease enter numeric values/cfoutput
/cfif
/cfif

I need the eror message to be in the alert box. I tried using like 
cfotputscript type=javascriptalert('Please enter numeric 
values');/script/cfoutput
but didnt workwhat is the best way to do it...

Thanks,
Pranathi


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321845
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFDIV

2009-04-20 Thread Pranathi Reddy

Hi All,

I am using cfdiv to display the Name of the employer. Once the user enters the 
id in the textfield ..Name of the employer is displayed.It works fine when I 
enter the ID but I want to validate the text field to be highlighted if the 
textfield is empty. I am using a class attribute and a * to indicate error in 
the field and also want the data to be autofilled if error occurs.but either of 
them work for the field.
The other fields in the page are just working file with the highlight on error.

This is what I am doing:
Number: cfinput type=text name=txt_Number 
value=#session.txt_Routingdata# class=errorfield
cfdiv ID=id_Number 
bind=url:EmployerInfo.cfm?EmployerNumber={Form1:txt_Number}/

EmployerInfo.cfm
cfquery name=EmployerInfo
select Name from Employer where id='#url.EmployerNumber#' 
/cfquery
cfoutput#EmployerInfo.Name#/cfoutput


Thanks in Advance,
Pranathi


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Convert RGB values

2009-04-15 Thread Pranathi Reddy

Hi All..
I have a quick qn..
How do we convert RGB input text data to hex or color in coldfusion.
Do we have any inbuilt function or we need to use javascript for that.

Thanks,
Pranathi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321628
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Convert RGB values

2009-04-15 Thread Pranathi Reddy

Thanks for your help Raymond.

http://cflib.org/udf/RGBtoHex


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321631
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Compare Strings

2009-04-07 Thread Pranathi Reddy

Dear All,

I have a very qucik question... I am comparing two strings .. my strings will 
be of kind ... 0012asqw00 or 1230 or 0001 etc...,
I am comparing two strings and if I have 2 strings
String1: 0010as1
String2: 10as1
I should get an output that these two strings are equal.
If I use Trim,LTrim,Rtrim, compare().. what ever I use I am getting that 
strings are not equal... how do I compare these types of strings and display 
that these strings are equal.

Thanks,
Pranathi.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321383
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Compare Strings

2009-04-07 Thread Pranathi Reddy

Thanks Charlie and Peter for quick reponse...
in either way I do ... I am getting -1 (string1 is less than string 2)
Se below is that I did...

cfset string1 = '0010as1000'
cfset string2 = '10as1'
cfoutput#compareNoCase(replace(string1,'^0*|0*$','','all'),rereplace(string2,'^0*|0*$','','all'))#/cfoutput

or 

cfset string1 = '0010as1000'
cfset string2 = '10as1'
cfoutput#compareNoCase(replace(string1,'^0+|0$','','all'),rereplace(string2,'^0+|0$','','all'))#/cfoutput

Thanks,
Pranathi



  So... what rules are you working with?  Are you saying that any
  leading/trailing zeros should be ignored?
  
  If so, rereplace(string1, '^0*|0*$', '', 'all') should remove
  leading/trailing zeros.
 
 H. Bit inefficient matching with * - that means you're always 
 matching the positions ^ and $ whether there are any leading/trailing 
 zeros or not.
 
 ^0+|0+$ would be better - only replacing when zeroes exist.
 
 
 It's a small change, but if this comparison is only part of a larger 
 loop, it might have an impact. 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321394
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Compare Strings

2009-04-07 Thread Pranathi Reddy

Thank alot It worked...

Pranathi.

I'm still learning regex, so i'm less concerned with inefficient and
more concerned with holy crap it worked :)

I had the + in place of the * initially, but read something that
made me think the * would be better in that case.  I probably
misunderstood (and don't recall what it was specifically, as I read it
late last night and I'm typing this early the next morning), but I
think I get what you're saying.

The + matches 1 or more, whereas the * matches zero or more... so with
the asterisk the engine always hits the beginning and end (even in
the case of zero zeros).

Thanks.  Just woke up and learned something.  I can go back to bed :)

-- 
I have failed as much as I have succeeded. But I love my life. I love
my wife. And I wish you my kind of success 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


autosuggest in ColdFusion

2009-03-30 Thread Pranathi Reddy

hello,

I am using autosugestvalue to get the values dynamically as we enter the 1st 
letters of the name.I can sucessfully get the Employerid dynamically when I 
enter the Employer Name. But when I try to submit the form without entering the 
data in the fields.. it pops up with the error .. variable not defined in the 
form.
When I enter the data it doesnt show any error.
Is there anyway I can slove this issue and can display the  message that this 
fields are empty.

cfform 
Name:
cfinput type=text name=lookup 
autosuggest=cfc:Getbankname.getEMPID({cfautosuggestvalue}) br /
Department:cfselect name=userID id=userID 
bind=cfc:Getbankname.getName({lookup}) display=userName value=userID 
bindOnLoad=false /
cfinput type=Submit value=Submit name=Submit
/cfform
cfif isDefined('form.Submit')
cfdump var = #form.lookup#
cfdump var =#form.userID#
cfif form.lookup eq '' and form.userID eq ''
cfoutputFields are not filed/cfoutput
/cfif
/cfif 

cfc code..

cfcomponent
!---function to retun dept based on user name---
cffunction name=getName access=remote output=false  
returntype=query
cfargument name=route_num
 
cfquery name=get_bnk_name datasource=cfdocexamples 
SELECT  emp_id as UserID,Department as userName
FROM Employees
where rstName) =Ucase('#ARGUMENTS.route_num#')
/cfquery 
   cfreturn get_bnk_name
/cffunction

!---function to retun emp name  based on entered letter---
cffunction name=getEMPID access=remote output=false  
returntype=array

  cfargument name=route_num

cfquery name=get_bnk_name datasource=cfdocexamples
SELECT  FirstName
FROM Employees
where UCase(FirstName) LIKE Ucase('%#ARGUMENTS.route_num#%')
   
/cfquery
   
!--- Build result array ---
cfset result=ArrayNew(1)
cfloop query=get_bnk_name
cfset ArrayAppend(result, FirstName)
/cfloop
 cfreturn result
/cffunction
/cfcomponent

Thanks,
Pranathi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321114
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Problem in accessing formfields using CFDIV

2009-03-13 Thread Pranathi Reddy

Sorry by mistake post got submitted Check here for full details..
 Hii All,
 
 I really dont know how to post for the technical issues and I will try 
 my best to explain in details.
 
 I have a parent Page with the below form fields and using cfdiv to 
 submit the form asynchronously.
 cfform name =DetailsForm
 table
tr 
 tdEmployerID/td 
 tdcfinput type=text name=txt_EmployerID id=id_EmployerID 
 value=/td 
 /tr 
tr 
 tdFirstName/td 
 tdcfinput type=text name=txt_FirstName id=id_FirstName 
 value=/td 
 /tr 
 tr 
 tdLastName/td 
 tdcfinput type=text name=txt_LastName id=id_LastName 
 value=/td 
 /tr 
 tr 
 tdPhotograph/td 
 tdcfinput type=file name=Image id=id_file value=/td 
 /tr 
 tr 
 tdcfinput type=submit name=submit_Details value=Submit/td 
 
 /tr 
 /table 
 /cfform
 cfdiv id=id_details bind=url:New1.cfm?FirstName={DetailsForm.
 FirstName} /cfdiv 
 
 New1.cfm
 
 cfobject component=Project_Sample name=Project_Sample_Obj
 cfinvoke component=#Project_Sample_Obj# method=InsertInfoData 
  returnvariable=InsertedInfo/
 cfif form.Image neq '' 
   cffile action=upload fileField=image 
 destination=#application.workingPersonnelDirectory# 
result=fileUpload 
nameconflict=overwrite 
   cffile action=readBinary file=#image# variable=FinalImage 
cfset session.FinalImage =#FinalImage# 
  cfinvoke component=#Project_Sample_Obj# method=UpdatePhoto 
 returnvariable=UpdatedPhoto/ 
 cfquery name=Query5 datasource=Information result=result_1 
select Photo from tblEmployer where EmployerID =#form.EmployerID#
/cfquery  
cfimage action=writetobrowser source=#Query5.Photo# / 
/cfif

cfform name =WorkingDetailsForm
 table
tr 
 tdEmployerID/td 
 tdcfinput type=text name=txt_EmployerID id=id_EmployerID 
 value=/td 
 /tr 
 tr 
 tdSalary/td 
 tdcfinput type=text name=txt_Salary id=id_Salary 
 value=/td 
 /tr 
 tr 
 tdWorkingHours/td 
 tdcfinput type=text name=txt_WorkingHours id=id_WorkingHours 
 value=/td 
 /tr 
/table
/cfform
 cfdiv id=id_Salary bind=url:New2.cfm?Salary={WorkingDetailsForm.
 Salary} /cfdiv
.
.
.
.


My concern is ... once I enter the details and submit it .. I am unable to 
acess the form fields in new1.cfm.
Error: Element form.txt_FirstName is undefined in form.
I am asuming I have the problem in submitting the form fields. Is not the right 
way to submit the forms 

Thanks,
Pranathi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320500
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem in accessing formfields using CFDIV

2009-03-13 Thread Pranathi Reddy

oh ok ... but what about the other form fields in the cfform.. I am not able to 
access even the text fields in the New1.cfm...


so... what's your question

just FYI, CF8's ajax features do not support async file uploading.
if you need that functionality you will have to manually code it using
single-pixel iframe or whatever other technique you prefer...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Pranathi Reddy wrote:
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320502
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Problem in accessing formfields using CFDIV

2009-03-12 Thread Pranathi Reddy

Hii All,

I really dont know how to post for the technical issues and I will try my best 
to explain in details.

I have a parent Page with the below form fields and using cfdiv to submit the 
form asynchronously.
cfform name =DetailsForm
table
tr 
tdFirstName/td 
tdcfinput type=text name=txt_FirstName id=id_FirstName value=/td 
/tr 
tr 
tdLastName/td 
tdcfinput type=text name=txt_LastName id=id_LastName value=/td 
/tr 
tr 
tdPhotograph/td 
tdcfinput type=file name=Image id=id_file value=/td 
/tr 
tr 
tdcfinput type=submit name=submit_Details value=Submit/td 
/tr 
/table 
/cfform
cfdiv id=id_details bind=url:New1.cfm?FirstName={DetailsForm.FirstName} 
/cfdiv 

New1.cfm
 cfobject component=Project_Sample name=Project_Sample_Obj
cfinvoke component=#Project_Sample_Obj# method=InsertBrandData 
returnvariable=InsertedBrand/
cfif form.Image neq '' 
cffile action=upload fileField=image 
destination=#application.workingPDFDirectory# result=fileUpload 
nameconflict=overwrite 
cffile action=readBinary file=#image# 
variable=FinalImage 
cfset session.FinalImage 
=#FinalImage# 
cfinvoke component=#OAFAdmin_Obj# 
method=UpdateLogo returnvariable=UpdatedLogo/ 
cfquery name=Query5 datasource=BankInfo 
result=result_1 
select Logo from tblWebSiteBrand where BankNumber='1221'
/cfquery  
cfimage action=writetobrowser source=#Query5.Logo# / 
/cfif


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320499
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfGrids

2009-03-11 Thread Pranathi Reddy

I have a grid grids.cfm

Grid Code:
 
cfform name=GridEmployerform action= 
cfgrid name=GridEmployer width=400 
   selectmode=edit 
   query=Data height=50 
cfgridcolumn name=DepartmentID 
header=EmployerID select=false 
headeralign=center 
headerbold=Yes 
cfgridcolumn name=FirstName 
header=FirstName 
headeralign=center 
headerbold=Yes 
cfgridcolumn name=LastName 
header=LastName 
headeralign=center 
headerbold=Yes 
cfgridcolumn
name=Phone 
header=Phone 
headeralign=center 
headerbold=Yes 
 
cfgridcolumn name=Address 
header=Address 
headeralign=center 
headerbold=Yes 
/cfgrid

cfdiv id=results 
bind=url:Test.cfm?EmployerID={GridEmployerform:GridEmployer.EmployerID} 
/cfdiv

Test.cfm
cfquery name=get datasource=#application.datasource#   
SELECT FirstName
FROM tblWebSiteBrand
WHERE BrandID = '#url.EmployerID#'

/cfquery

cfoutput query=get
#FirstName#

/cfoutput

and this works fine and I will get the FirstName but if I use 
cfform
cfinput name=name1 value=#FirstName# type=text
/cfform
is displaying an error ..cfajax import ..use cfdebug .?

Any Suggestions on this?? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320380
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfGrids

2009-03-11 Thread Pranathi Reddy

I solved it..
 I have a grid grids.cfm
 
 Grid Code:
 
 
 cfform name=GridEmployerform action= 
 cfgrid name=GridEmployer width=400 
   
 selectmode=edit 
   
 query=Data height=50 
 cfgridcolumn name=DepartmentID 
 header=EmployerID select=false 
 headeralign=center 
 headerbold=Yes 
 cfgridcolumn name=FirstName 
 header=FirstName 
 headeralign=center 
 headerbold=Yes 
 cfgridcolumn name=LastName 
 header=LastName 
 headeralign=center 
 headerbold=Yes 
 cfgridcolumn
 name=Phone 
 header=Phone 
 headeralign=center 
 headerbold=Yes 
  
 cfgridcolumn name=Address 
 header=Address 
 headeralign=center 
 headerbold=Yes 
 /cfgrid
 
 cfdiv id=results bind=url:Test.
 cfm?EmployerID={GridEmployerform:GridEmployer.EmployerID} /cfdiv
 
 Test.cfm
 cfquery name=get datasource=#application.datasource#   
 SELECT FirstName
 FROM tblWebSiteBrand
 WHERE BrandID = '#url.EmployerID#'
 
 /cfquery
 
 cfoutput query=get
   #FirstName#
 
 /cfoutput
 
 and this works fine and I will get the FirstName but if I use 
 cfform
 cfinput name=name1 value=#FirstName# type=text
 /cfform
 is displaying an error ..cfajax import ..use cfdebug .?
 
 Any Suggestions on this?? 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320385
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFDIV Navigation

2009-03-11 Thread Pranathi Reddy

Grid Code:
 Employer.cfm
cfform name=GridEmployerform action= 
cfgrid name=GridEmployer width=400 
   selectmode=edit 
   query=Data height=50 
cfgridcolumn name=DepartmentID 
header=EmployerID select=false 
headeralign=center 
headerbold=Yes 
cfgridcolumn name=FirstName 
header=FirstName 
headeralign=center 
headerbold=Yes 
cfgridcolumn name=LastName 
header=LastName 
headeralign=center 
headerbold=Yes 
/cfgrid

cfdiv id=results 
bind=url:Test.cfm?EmployerID={GridEmployerform:GridEmployer.EmployerID} 
/cfdiv

Test.cfm
cfquery name=get datasource=#application.datasource#   
SELECT Salary
FROM Department
WHERE  = '#url.EmployerID#'
/cfquery
cfgrid name=GridEmployer width=400 
   selectmode=edit 
   query=Data height=50 

   cfgridcolumn name=Salary 
 header=Salary 
  headeralign=center 
 headerbold=Yes
/cfgrid

cfajaximport tags=cfform / 
cfinput type=text name=txt_salary value#Salary#
cfinput type=submit name=submit_salary valueSubmit Value
cfinput type=submit name=submit_Home valueSubmit Home

Now.. my concern I have to go back to the page where I should display only the 
Employergrid not the other stuff  in Test.cfm.

I tried with cflocation
cflocation Employer.cfm
but it is not working normally while it is working before. It is not moving 
forward to Test.cfm again if I use cflocation.

Can any one help with this?

Thanks,
Pranathi. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320426
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDIV Navigation

2009-03-11 Thread Pranathi Reddy

Any Ideas.?

 Grid Code:
 
 Employer.cfm
 cfform name=GridEmployerform action= 
 cfgrid name=GridEmployer width=400 
   
 selectmode=edit 
   
 query=Data height=50 
 cfgridcolumn name=DepartmentID 
 header=EmployerID select=false 
 headeralign=center 
 headerbold=Yes 
 cfgridcolumn name=FirstName 
 header=FirstName 
 headeralign=center 
 headerbold=Yes 
 cfgridcolumn name=LastName 
 header=LastName 
 headeralign=center 
 headerbold=Yes 
 /cfgrid
 
 cfdiv id=results 
 bind=url:Test.cfm?EmployerID={GridEmployerform:GridEmployer.
 EmployerID} 
 /cfdiv
 
 Test.cfm
 cfquery name=get datasource=#application.datasource#   
 SELECT Salary
 FROM Department
 WHERE  = '#url.EmployerID#'
 /cfquery
 cfgrid name=GridEmployer width=400 
   
 selectmode=edit 
   
 query=Data height=50 
 
   
 cfgridcolumn name=Salary 
 
 header=Salary 
  
 headeralign=center 
 
 headerbold=Yes
 /cfgrid
 
 cfajaximport tags=cfform / 
 cfinput type=text name=txt_salary value#Salary#
 cfinput type=submit name=submit_salary valueSubmit Value
 cfinput type=submit name=submit_Home valueSubmit Home
 
 Now.. my concern I have to go back to the page where I should display 
 only the Employergrid not the other stuff  in Test.cfm.
 
 I tried with cflocation
 cflocation Employer.cfm
 but it is not working normally while it is working before. It is not 
 moving forward to Test.cfm again if I use cflocation.
 
 Can any one help with this?
 
 Thanks,
 Pranathi. 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320428
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Unable to update cfGrid

2009-03-04 Thread Pranathi Reddy

I am trying to work on the sample in livedoces but I am unable to update the 
database and also I am unable to display the updated contents. Can any one help 
me with it.

I have appended the columns to reduce the content.

Grid2.cfm
cfquery name=empdata datasource=CompanyInfo
  SELECT * FROM Employee
/cfquery

cfform name=GridForm
  action=handle_grid.cfm

  cfgrid name=employee_grid
height=425
width=300
vspace=10
selectmode=edit
query=empdata
insert=Yes
delete=Yes

cfgridcolumn name=Emp_ID
  header=Emp ID
  width=50
  headeralign=center
  headerbold=Yes
  select=No
  /cfgrid
  br
  input type=Submit value=Submit
/cfform

handle_grid.cfm

cfgridupdate grid=Brand_Grid
  datasource=BankInfo
  tablename=tblWebSiteContent
  
Click a href=grid2.cfmhere/a to display updated grid.

Thanks,
Pranathi. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320091
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Form Fields

2009-03-04 Thread Pranathi Reddy

Hi All,

I have an issue and my brain is not working Actually I am trying to pull 
the data back to the formfield from sql database when there is a selection in 
dropdownlist. I am really not sure of how I could realy implement it. 

Any Help???

Thanks,
Pranathi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Form Fields

2009-03-04 Thread Pranathi Reddy

Hi All,

I have an issue and my brain is not working Actually I am trying to pull 
the data back to the formfield from sql database when there is a selection in 
dropdownlist. I am really not sure of how I could realy implement it. 

Any Help???

Thanks,
Pranathi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320126
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Intereactive cfgrid

2009-03-03 Thread Pranathi Reddy

I can sucessfully create the grids and pull the data from the database.


Can I create a cfgrid where we can change data directly and save that data back 
to DB by using some button in the grid.
I checkout different forums but I was unlucky.
I also need the image to be displayed in the grid.

Can anyone have any idea??? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320059
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Page steps list

2009-03-02 Thread Pranathi Reddy

Hi, Pranathi... I'm sorry we're all having such a difficult
time understanding what you're trying to do.

Can you tell us of a website we can visit that shows how
you want the one to render the steps which you always see
when you fill online application of the header to work?

Can you tell us a website that works like you want yours to work?

Rick

I want the one to render the steps which you always see when you fill online
application on the header.
That is what I am expecting.

Thanks,
Pranathi. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Page steps list

2009-03-02 Thread Pranathi Reddy

https://chaseonline.chase.com/public/oao/GettingStarted.aspx?PROD_CODE=010SUB_PROD_CODE=104PROD_SEG=MASSMARKET

If you can see in this link it shows that getting started, new information 
etc.., are pages and their stage names.

They have 4 steps but I need 3 steps but have 4 pages to work on.. How does we 
do it... Sorry.. for making you confused.

Thanks,
Pranathi.

Hi, Pranathi... I'm sorry we're all having such a difficult
time understanding what you're trying to do.

Can you tell us of a website we can visit that shows how
you want the one to render the steps which you always see
when you fill online application of the header to work?

Can you tell us a website that works like you want yours to work?

Rick

I want the one to render the steps which you always see when you fill online
application on the header.
That is what I am expecting.

Thanks,
Pranathi. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cffunction in Component file

2009-03-02 Thread Pranathi Reddy

Hi All,

I am planning to shift all the queries to one .cfc file. I am confused what if 
I have to pass the form values to the function in the .CFC files.

cffunction name=AddData returntype=any
cfset var Qry_Data = 
cfquery name=Qry_Data datasource=Platform 
INSERT INTO tblWebSiteBrand (FirstName,LastName,Phone)
VALUES (cfqueryparam cfsqltype=CF_SQL_VARCHAR value='#form.FirstName#',
cfqueryparam cfsqltype=CF_SQL_VARCHAR value='#form.LastName#',
(cfqueryparam cfsqltype=CF_SQL_INTEGER value='#form.Phone#',
/cfquery 
cfreturn Qry_Data
/cffunction

Thanks,
Pranathi. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320020
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffunction in Component file

2009-03-02 Thread Pranathi Reddy

I can actually pass the string and numeric values but unable to pass the image 
into the cfarguement.

I was wondering how would I really save this data into database??

Thanks,
Pranathi.


ArgumentCollection is your friend. :)

Save functionality but allows explicit arguments... 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320048
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Page steps list

2009-03-01 Thread Pranathi Reddy

Hi All,

I am new to cold fusion and trying to create the some list of pages for the 
feedback and results.

I need to display the status of the everypage in the list as shown below.

table align=centertd class=NoHighlight1. Feedback1 2. Feedback2 3. 
Feedback3
td class= Highlight 3. Results
/td

It should have only 3 steps in the list.. means only 3 pages should be 
displayed.eg:
page1,page2,page4 or page1,page3, page4.. something like this

I literaly dont want to use this in each and every page. I want to create a 
function so that it can be called in the page where ever needed. I saw in one 
of the posts that we can use sessions but I am unable to implement it. Can 
anyone helps with it or is there any other way to do so. 

Thanks,
Pranathi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Page steps list

2009-03-01 Thread Pranathi Reddy

Any one have any suggestions on this?

On Sun, Mar 1, 2009 at 3:39 PM, Pranathi Reddy rk.prana...@gmail.comwrote:


 Hi All,

 I am new to cold fusion and trying to create the some list of pages for the
 feedback and results.

 I need to display the status of the everypage in the list as shown below.

 table align=centertd class=NoHighlight1. Feedback1 2. Feedback2 3.
 Feedback3
 td class= Highlight 3. Results
 /td

 It should have only 3 steps in the list.. means only 3 pages should be
 displayed.eg:
 page1,page2,page4 or page1,page3, page4.. something like this

 I literaly dont want to use this in each and every page. I want to create a
 function so that it can be called in the page where ever needed. I saw in
 one of the posts that we can use sessions but I am unable to implement it.
 Can anyone helps with it or is there any other way to do so.

 Thanks,
 Pranathi

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Page steps list

2009-03-01 Thread Pranathi Reddy

I have 4 pages in my application
Page1, Page2, page3 and page4

I am trying to do something like this (saw in some post):

 cfset pagelist = Page1,Page2,Page3,Page4
 cfoutput
  table align=center
   cfset stepCounter = 0
  cfloop list=#pagelist# index=i
   cfset stepCounter = stepCounter +1
   cfif arguments.pagename EQ #trim(i)#
cfset styleclass = HighLight
   cfelse
cfset styleclass = NoHighlight
   /cfif
   tr
 td class=#styleclass# nowrapStep #stepCounter#: /tdtd
class=#styleclass# nowrap#getContent('#arguments.PageID#',
'#i#').title#/td
 /tr
  /cfloop
  /table
  /cfoutput

I am trying to  display the list of the page rendering.
If we are on page1  according to the condition it is redirected to page2
or page3.

The total number of steps should be only 3 and according to the procedure
above it display's 4 steps.  It means that it should either be on page2 or
page3 and not both.

Thanks,
Pranathi.

On Sun, Mar 1, 2009 at 5:37 PM, Rick Faircloth r...@whitestonemedia.comwrote:


 Hi, Pranathi...

 I need to understand more about your requirements.

 What will determine which pages are to be displayed?
 (1,2,4) or (1,3,4) ?

 And what is it that you need to accomplish by using
 a session variable?

 I'm just not clear on the goal.

 Rick


 -Original Message-
 From: Pranathi Reddy [mailto:rk.prana...@gmail.com]
 Sent: Sunday, March 01, 2009 5:13 PM
 To: cf-talk
 Subject: Re: Page steps list


 Any one have any suggestions on this?

 On Sun, Mar 1, 2009 at 3:39 PM, Pranathi Reddy rk.prana...@gmail.com
 wrote:

 
  Hi All,
 
  I am new to cold fusion and trying to create the some list of pages
  for the feedback and results.
 
  I need to display the status of the everypage in the list as shown below.
 
  table align=centertd class=NoHighlight1. Feedback1 2. Feedback2
 3.
  Feedback3
  td class= Highlight 3. Results
  /td
 
  It should have only 3 steps in the list.. means only 3 pages should be
  displayed.eg:
  page1,page2,page4 or page1,page3, page4.. something like this
 
  I literaly dont want to use this in each and every page. I want to
  create a function so that it can be called in the page where ever
  needed. I saw in one of the posts that we can use sessions but I am
 unable
 to implement it.
  Can anyone helps with it or is there any other way to do so.
 
  Thanks,
  Pranathi
 
 



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319974
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Page steps list

2009-03-01 Thread Pranathi Reddy

Any ideas?

I have 4 pages in my application
Page1, Page2, page3 and page4

I am trying to do something like this (saw in some post):

 cfset pagelist = Page1,Page2,Page3,Page4
 cfoutput
  table align=center
   cfset stepCounter = 0
  cfloop list=#pagelist# index=i
   cfset stepCounter = stepCounter +1
   cfif arguments.pagename EQ #trim(i)#
cfset styleclass = HighLight
   cfelse
cfset styleclass = NoHighlight
   /cfif
   tr
 td class=#styleclass# nowrapStep #stepCounter#: /tdtd
class=#styleclass# nowrap#getContent('#arguments.PageID#',
'#i#').title#/td
 /tr
  /cfloop
  /table
  /cfoutput

I am trying to  display the list of the page rendering.
If we are on page1  according to the condition it is redirected to page2
or page3.

The total number of steps should be only 3 and according to the procedure
above it display's 4 steps.  It means that it should either be on page2 or
page3 and not both.

Thanks,
Pranathi.

On Sun, Mar 1, 2009 at 5:37 PM, Rick Faircloth r...@whitestonemedia.comwrote:

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319976
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Page steps list

2009-03-01 Thread Pranathi Reddy

cfform

This is qn.1

cfloop from=1 to='4' index='i'

cfinput type=radio name=radio1 value=a#i# 

/cfloop

This is qn.2

cfloop from=1 to='4' index='i'

cfinput type=radio name=radio2 value=b#i# 

/cfloop

This is qn.3

cfloop from=1 to='4' index='i'

cfinput type=radio name=radio3 value=c#i# 

/cfloop

cfinput type=submit value=submit name=Submit

/cfform

cfif isDefined('form.Submit')

cfstoredproc procedure=csp_ONF_GetAnswers datasource=Platform 

cfprocparam cfsqltype=CF_SQL_INTEGER value=#radio1# type=in

cfprocparam cfsqltype=CF_SQL_INTEGER value=#radio2# type=in

cfprocparam cfsqltype=CF_SQL_INTEGER value=#radio3# type=in

cfprocresult name=Answer_Data

cfif Answer_Data.Answer gt 2

cflocation url=page3.cfm

cfelse

cflocation url=page4.cfm

/cfif

/cfif
This is what is my form. And I need to display the steps on what page the
user is in and how many steps are left over to complete the feed back. I
totally have 4 pages but I need to display on 3 pages. It is displaying 4
steps and If I take one page name off from the page list it is displaying 3
steps but if the user visiting the page.. it is not displaying the page
highlited.
eg:
if I mentione cfset pagelist=page1,page2,page3
then if the conditions is false then it should go for page4 but it is not
rendering the steps. but it is displating 3 steps. if I add 4 pagenames then
total steps are 4 but it highkights the page in which user is using.
Actual steps should be 3 not 4.

Thanks
Pranathi

On Sun, Mar 1, 2009 at 9:43 PM, Rick Faircloth r...@whitestonemedia.comwrote:


 So... what page you want to take the visitor to depends
 on what the answer is?

 -Original Message-
 From: Priya Koya [mailto:priya23...@gmail.com]
 Sent: Sunday, March 01, 2009 9:38 PM
 To: cf-talk
 Subject: Re: Page steps list


  I am calling a procedure to compare the answers ..
 if (answer 4)
 cflocation url= page3
 else
 cflocation url='page4'
 This is wat is the condition on page2.

 I want to write a function in the .cfc so that I really dont have to
 mention
 on each any every page.

 Thanks,
 Pranitha.

 On Sun, Mar 1, 2009 at 9:29 PM, Azadi Saryev az...@sabai-dee.com wrote:

 
  still not clear what exactly determines which pages are to be
  displayed and which one is not...
  can you clarify that?
 
   If we are on page1  according to the condition it is redirected
  to page2
  or page3.
 
  what's this 'condition'???
 
  your 'procedure' just loops over your list of 4 page names and outputs
  ALL of them - you just need to incorporate your 'condition' into the
  loop to not display the page that should not be displayed.
 
  Azadi Saryev
  Sabai-dee.com
  http://www.sabai-dee.com/
 
 
 
  Pranathi Reddy wrote:
   Any ideas?
  
  
   I have 4 pages in my application
   Page1, Page2, page3 and page4
  
   I am trying to do something like this (saw in some post):
  
   cfset pagelist = Page1,Page2,Page3,Page4 cfoutput  table
   align=center
 cfset stepCounter = 0
cfloop list=#pagelist# index=i
 cfset stepCounter = stepCounter +1
 cfif arguments.pagename EQ #trim(i)#
  cfset styleclass = HighLight
 cfelse
  cfset styleclass = NoHighlight
 /cfif
 tr
   td class=#styleclass# nowrapStep #stepCounter#: /tdtd
   class=#styleclass# nowrap#getContent('#arguments.PageID#',
   '#i#').title#/td
   /tr
/cfloop
/table
/cfoutput
  
   I am trying to  display the list of the page rendering.
   If we are on page1  according to the condition it is redirected
   to
  page2
   or page3.
  
   The total number of steps should be only 3 and according to the
  procedure
   above it display's 4 steps.  It means that it should either be on
   page2
  or
   page3 and not both.
  
   Thanks,
   Pranathi.
  
   On Sun, Mar 1, 2009 at 5:37 PM, Rick Faircloth 
  r...@whitestonemedia.comwrote:
  
  
  
  
 
 



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319980
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Page steps list

2009-03-01 Thread Pranathi Reddy

I want the one to render the steps which you always see when you fill online
application on the header.
That is what I am expecting.

Thanks,
Pranathi.

On Sun, Mar 1, 2009 at 11:06 PM, Azadi Saryev az...@sabai-dee.com wrote:


 if all you are trying to do is display a multi-part/multi-step form,
 then i have found this post by Ben Nadel very helpful and easy to
 implement:
 http://www.bennadel.com/blog/1265-Multi-Step-Form-Demo-In-ColdFusion.htm

 does require quiet a bit of code, but works like a charm when done...

 Azadi Saryev
 Sabai-dee.com
 http://www.sabai-dee.com/



 Pranathi Reddy wrote:
   cfform
 
  This is qn.1
 
  cfloop from=1 to='4' index='i'
 
  cfinput type=radio name=radio1 value=a#i# 
 
  /cfloop
 
  This is qn.2
 
  cfloop from=1 to='4' index='i'
 
  cfinput type=radio name=radio2 value=b#i# 
 
  /cfloop
 
  This is qn.3
 
  cfloop from=1 to='4' index='i'
 
  cfinput type=radio name=radio3 value=c#i# 
 
  /cfloop
 
  cfinput type=submit value=submit name=Submit
 
  /cfform
 
  cfif isDefined('form.Submit')
 
  cfstoredproc procedure=csp_ONF_GetAnswers datasource=Platform 
 
  cfprocparam cfsqltype=CF_SQL_INTEGER value=#radio1# type=in
 
  cfprocparam cfsqltype=CF_SQL_INTEGER value=#radio2# type=in
 
  cfprocparam cfsqltype=CF_SQL_INTEGER value=#radio3# type=in
 
  cfprocresult name=Answer_Data
 
  cfif Answer_Data.Answer gt 2
 
  cflocation url=page3.cfm
 
  cfelse
 
  cflocation url=page4.cfm
 
  /cfif
 
  /cfif
  This is what is my form. And I need to display the steps on what page the
  user is in and how many steps are left over to complete the feed back. I
  totally have 4 pages but I need to display on 3 pages. It is displaying 4
  steps and If I take one page name off from the page list it is displaying
 3
  steps but if the user visiting the page.. it is not displaying the page
  highlited.
  eg:
  if I mentione cfset pagelist=page1,page2,page3
  then if the conditions is false then it should go for page4 but it is not
  rendering the steps. but it is displating 3 steps. if I add 4 pagenames
 then
  total steps are 4 but it highkights the page in which user is using.
  Actual steps should be 3 not 4.
 
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319982
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4