Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Status request Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: June 08 2006 at 05:08 | IP Logged Quote krommetje

Dave!!

since the new version I am getting a DirectSQL-error 41 in the status request formula:

ph_rtne(ph_directsql("update x10unitcode set status = 0 where id = 'K' and code = 6") + ph_x10refreshstat() + ph_x10("X10-1","K",6,0) + ph_x10("X10-1","K",15,0))

The report is:

X10unitcode not found...

Peter
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: June 11 2006 at 22:44 | IP Logged Quote dhoward

Peter,

The x10unitcode table went away in the 1.03.4.7 version. The x10housecode and x10unitcode tables were combined into the x10devices table. You could do a "select * from x10devices" in the SQL Editor to get a list of the columns and such.

As a quick fix to your formula, I would think it would look like:

ph_rtne(ph_directsql("update x10devices set status = 0 where house = 'K' and unit = 6") + ph_x10refreshstat() + ph_x10("X10-1","K",6,0) + ph_x10("X10-1","K",15,0))

Dave.

Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum