Re: Duplicate query execution in application.cfm for a certain page

2006-10-17 Thread tanguyr
Brent Shaub wrote:
 
 Hello all,
 
 I'm having trouble debugging this one.  I have a query in application.cfm
 that inserts to a table.  For most pages, I see one record.  For a
 particular page, I am seeing two.  What would be in this file that could
 cause application.cfm to fire twice?  I even tried using a request-scope
 flag to prevent the second entry with no luck.  It's a simple page without
 any includes, and it's not being included.
 
 Thanks for any help on this,
 Brent
 

It could be because of a duplicate request. Put a cflog tag in there and
check the thread id.

/t
-- 
View this message in context: 
http://www.nabble.com/Duplicate-query-execution-in-application.cfm-for-a-certain-page-tf2460888.html#a6859790
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257052
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Cf vs ?

2006-10-16 Thread tanguyr
Claude Schneegans wrote:
 
 Just as simple as this: they are wrong.
 1. Python or Ruby are not more popular than CF
 2. they do not achieve the same thing in the same way
 

Don't know about Ruby numbers, but I think there are many more Python
developers out there than CF developers. Python runs on more platforms than
CF does. There are more Python books than CF books. There are more Python
frameworks and tools than CF frameworks and tools.

Thing is, Python is a general purpose programming language, whereas CF is a
language for building web applications. So it's normal that Python is more
popular, just because it can be applied to solve more classes of problems.

So, two things:

1) Compare like to like, or at least frame your argument - i.e. Python or
Ruby are not more popular than CF, for the purpose of building web
applications.

2) Don't be such a fanboy. It's a tool, not a sect.

/t
-- 
View this message in context: 
http://www.nabble.com/Cf-vs---tf2436859.html#a6832998
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256868
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: input type=Hidden name=status_required issue

2006-10-10 Thread tanguyr
Rick Dennis wrote:
 
 i have a customer input page that has this code at the bottom of the page 
 right before the submit button. 
 
 well on the same page i have a checkbox that if checked, it needs to
 ignore 
 this same piece of code.
 if the check box is checked, i want it to do this  
 
 how do i do this since the check box is on the same page as the piece of 
 code having the required field?
 
 Rick Dennis
 

The basic problem is that the status_required field is there to make use
of CF's magicform validation
(see http://tinyurl.com/atn87) - so you won't be able to handle this after
the page is submitted, since cf's magic code will run before anything you
can do (not sure about code in the OnRequestStart method of the
Application.cfc)

I'd say:
1) remove the field completely and implement your own server side validation
(status is required unless [checkbox]). This assumes that you're already
doing some kind of server side validation, so that you can slot this in
without too much trouble.

2) Redirect from javascript:

Of course, the users lose all the information they entered into the form...

3) use javascript to disable/enable the hidden field (this is a wild guess,
haven't tested but should work). If the field is disabled, the value is not
sent to the back end, and so the magic validation rule requiring the
presence of the statusfield never fires... Plus you still have access to
all the other stuff they filled in.

/t


-- 
View this message in context: 
http://www.nabble.com/%3Cinput-type%3D%22Hidden%22-name%3D%22status_required%22%3E-issue-tf2417019.html#a6742144
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256152
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: input type=Hidden name=status_required issue

2006-10-10 Thread tanguyr
sigh...

point two should have been:

2) Redirect from javascript:
[input type=checkbox... onclick=self.location='NOIDecision.cfm'...]
Of course, the users lose all the information they entered into the form...

but silly me i entered it in html...

/t
-- 
View this message in context: 
http://www.nabble.com/%3Cinput-type%3D%22Hidden%22-name%3D%22status_required%22%3E-issue-tf2417019.html#a6742202
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256153
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: Debugging JavaScript

2006-09-28 Thread tanguyr
James Holmes-3 wrote:
 
 The Firebug extension for Firefox is the shizzle, escpecially for AJAX.
 

 and for IE, try te Microsoft Script Debugger (consult a quality search
engine).

Also, the Javascript Shell (cross-platform IE/FF capable), whilst not really
a debugger, is very useful for investigating dom/javascript issues at
runtime. Check it out at http://www.squarefree.com/shell/

/t

-- 
View this message in context: 
http://www.nabble.com/OT%3A-Debugging-JavaScript-tf2348857.html#a6545073
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254586
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT: Debugging JavaScript

2006-09-28 Thread tanguyr
Claude Schneegans wrote:
 
  and for IE, try te Microsoft Script Debugger
 
 In about 10 years of development using IE, I've never been able to get 
 this piece of *?%!
 working, either under W98 or XP. I gave up.
 

Yeah, it's not exactly intuitive or anything. I found this article:

http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html

very useful.

By and large, i basically develop in firefox first, using firebug and the
console.log() stuff, and then integrate with ie afterwards. I find the best
strategy is *not* to wait until the whole thing is done in firefox before
trying to get it to work in ie, or you will have built up so many problems
that you will debug all night. Tools like selenium are really useful here as
they allow you to run the same tests in firefox and ie - saves a lot of time
when you are trying to test stuff that's a pain to get to.

/t

-- 
View this message in context: 
http://www.nabble.com/OT%3A-Debugging-JavaScript-tf2348857.html#a6549124
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254634
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT: IE behaviors/bugs

2006-09-27 Thread tanguyr
Rusty Owens wrote:
 
  I can't use Javscript since I am checking to see if an item exists in the
 database.  If it doesn't. I abort with an error and a link to go back.
 

I'm not sure i'm getting you, if not, please ignore, but you can use js to
check if an item exists in the database on the server via le hot mode du
jour, AJAX (tm)(c)(r). What your customers want (select by typing) sounds
a lot like what kids today are calling an AJAX autocompleter... of which the
best known example is Google Suggest:

http://www.google.com/webhp?complete=1hl=en

That one will let you type in any string, even if no matches were found, but
it wouldn't be that hard to turn it into a dropdown in stead of a text
field...

/t


-- 
View this message in context: 
http://www.nabble.com/OT%3A-IE-behaviors-bugs-tf2346589.html#a6534061
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254505
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Use CFMX with SAP

2006-09-19 Thread tanguyr
Marc,

Check the link again, and watch out for wrapping - it should take you to a
page entitled SAP Java Connector (SAP Library - Development Manual).

Secondly, this is *not* a webservice approach, it's a straight call an ABAP
function from java solution (in your case - it can also be used to develop
call java from ABAP functionality). You will need to consult with a SAP
developer at work to get details on the function to call, parameters to
pass, etc. etc. There's a overview diagram of the architecture in use here:

http://help.sap.com/saphelp_nw04/helpdata/en/8b/91222fa9e611d6b28f00508b6b8a93/content.htm

Regs,
/t


marc -- wrote:
 
 tanguyr thanks. I tried the POJO link but got an 404 (page not found). I
 know about the concept of consuming and publishing webservices from CFMX.
 But how do I find which services are offered by the owner of my particular
 SAP inplementation? Simply calling uddi.sap.com (the public uddi directory
 for SAP) gives me a 404. I need a few webservices to get/send data from
 /to SAP, do something with the return code etc. Where can I find which
 ones to use?
 
 Marc
 

-- 
View this message in context: 
http://www.nabble.com/Use-CFMX-with-SAP-tf2291598.html#a6386326
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253488
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Use CFMX with SAP

2006-09-18 Thread tanguyr
Hi,

I'm working on an application that gets and sends data to/from a SAP back
end. We use the SAP Java Connector (JCO) architecture to expose SAP RFCs as
methods in a stateless EJB, and call these from within cf (cfmx running in
weblogic). You *should* be able to get most of the benefit w/out having to
use EJB (our architecture is a couple of years old, but it works so we don't
change it) by just writing some POJOs and deploying them in a jar in your
cfserver's /lib directory and then using them via createObject or cfobject
calls from within your CF code. 

More information about JCO is available here:
http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm

Regs,
/t



marc -- wrote:
 
 Hello,
 I want to make a timesheet application for a company that stores al its HR
 (human resource) data in SAP. Currently employees fill in their
 timesheetdata in an Excel spreadsheet and email it to the company. The
 timesheet then is being validated by a Perl script and if OK sent by ftp
 to SAP. If not OK employees call back to manually correct the sheet. This
 is tedious and error prone process since it depends on many intermediate
 steps (validation scripts running, ftp connection up etc etc). When any of
 these fails the whole chain fails and often timesheetdata is not sent.
 
 Having an online timesheetmodule connected directly to SAP should makes
 things easier: the employee fills in the sheet (a form) and submits the
 timesheet to SAP. SAP validates the timesheetdata using it's
 validationrules and generates error messages if something's wrong. The
 idea is to have these error messages sent back to the client in response
 to the submit and have him/her correct the timesheet if needed.
 Since I am a CFMX programmer and not SAP knowledgeable I wonder if anyone
 on this list has experience with connecting CFMX to SAP. I'd like to get
 some tips please!
 

-- 
View this message in context: 
http://www.nabble.com/Use-CFMX-with-SAP-tf2291598.html#a6367670
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253431
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Boolean use of Recordcount

2006-09-13 Thread tanguyr
Yup - because 0 is false, but all other (positive?) numbers are true


Jeff Small wrote:
 
 cfif qMyQuery.Recordcount/cfif
 
 is basically the same as saying, as long as there's at least one
 record returned, true. This returns true and steps into the CFIF if the
 recordcount is 1, 2, 300...
 
 It is NOT the same as saying, as long as there is *one* record returned,
 true.
 
 Right?
 

-- 
View this message in context: 
http://www.nabble.com/Boolean-use-of-Recordcount-tf2266507.html#a6289791
Sent from the Cold Fusion - Technical forum at Nabble.com.


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253019
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4