wwilkins
Junior Member

Posts: 3
Registered: 2006-4-14
Member Is Offline
|
posted on 2006-4-14 at 08:10 AM |
|
|
Data binding
I have put a simple example that demonstrates data binding up on:
http://lab.uievolution.com/~wwilkins/RS1/ZiptoCityState.html
Please send any feedback/questions you have.
|
|
|
uiengineda
Member
 
Posts: 108
Registered: 2006-1-25
Member Is Offline
|
posted on 2006-4-21 at 12:54 AM |
|
|
server\html\rs\ziptocity.php
This file always return same values. This file seems to be sample.
And I have to use ziptocity.php in root directory?
Please replace "server\html\rs\ziptocity.php" to correct one.
|
|
|
wwilkins
Junior Member

Posts: 3
Registered: 2006-4-14
Member Is Offline
|
posted on 2006-4-21 at 03:16 PM |
|
|
Sorry about that, I have moved \ziptocity.php to server\html\rs\ziptocity.php. Also, I have moved \zips.txt to server\html\rs\zips.txt.
Thank you
|
|
|
wwilkins
Junior Member

Posts: 3
Registered: 2006-4-14
Member Is Offline
|
posted on 2006-7-7 at 11:55 AM |
|
|
I have made some changes to the sample.
1) ziptocity.php is now "Windows friendly". It uses all php functions to parse the file (zips.txt).
2) I have provided an ujml example of the recordset.
/server/ujml/sample.ujml
The llmodel.ujms parses these records.
My next update should clean/simplify up this logic
|
|
|
fredhui
Junior Member

Posts: 6
Registered: 2007-1-25
Member Is Offline
|
posted on 2007-2-16 at 02:09 AM |
|
|
Hi,
I have problem when I try to use recordSet with my UIE SDK 2.1.
I've got an error in the "Problems" tab in UJML Debug mode as follows:
Import function failed: RecordSet.mFields
I use the Record.php and RecordSet.ujms untouched on my server side...
Have anybody met this problem before?
I wonder if it is because of some kinds of version mis-matching problems in
the files RecordSet.php and RecordSet.ujms, or the compiler version of the SDK.
BTW, it would be great if I don't have to change my server side script.
Any help would be appreciated.
I have already spending hours in this problem... 
fredhui
|
|
|
ryana
Moderator
    
Posts: 54
Registered: 2006-1-18
Member Is Offline
|
posted on 2007-2-16 at 06:17 PM |
|
|
Is it possible the array size of mFields on the client is different than the number of fields that the server is trying to import?
|
|
|
fredhui
Junior Member

Posts: 6
Registered: 2007-1-25
Member Is Offline
|
posted on 2007-2-20 at 01:55 AM |
|
|
I've tried what you said but no luck.
However, if I change the MAX_OPEN_RECORDSET on client side,
the errors message is sightly changed:
Import function failed: RecordSet.sData
Now, I am thinking about to change the output of the .php to binary instead of ascii
in order to trace the problem.
Any help would be appreciated...
|
|
|
fredhui
Junior Member

Posts: 6
Registered: 2007-1-25
Member Is Offline
|
posted on 2007-2-20 at 05:47 PM |
|
|
> Now, I am thinking about to change the output of the .php to binary instead of ascii
> in order to trace the problem.
Oh, what I mean is the other way around.
I am thinking to change the output of the .php to ascii
instead of binary in order to trace the problem.
|
|
|
fredhui
Junior Member

Posts: 6
Registered: 2007-1-25
Member Is Offline
|
posted on 2007-2-21 at 03:36 AM |
|
|
It seems that I have found where is the problem.
Thank you.
|
|
|
cyberjaya
Junior Member

Posts: 15
Registered: 2007-6-17
Member Is Offline
|
posted on 2007-6-18 at 10:53 PM |
|
|
newbie i am.
ok i have a problem on this example
http://lab.uievolution.com/~wwilkins/RS1/ZiptoCityState.html
i downloaded the code and loaded the client in to the lastest UIE developer 2.1.1
there are some errors in "models"
for recordset.ujms line 351
error "unknow symbol in element srcitpt: log"
for llmodel.ujms
error "unknown symbol in element state : RecordSet.sEvents"
i can not make it work.
even i try to compile and run it
and i point the php file into the correct path
the data can be post to php files
but no matter whatever i type
it also return
"
Your citu is : Unknown
Your State is : Unkown
Your serverside : PHP....
"
only the last one is correct.
i even open the text database to get a correct zip code and type in.
it just does not return correct result.
i am using Apache server 2.2.x and PHP 5.x
i thought maybe i am using latest UIE developer and put an out-dated examples in ???
so can anyone give me an updated code for test?
|
|
|
cyberjaya
Junior Member

Posts: 15
Registered: 2007-6-17
Member Is Offline
|
posted on 2007-6-18 at 11:14 PM |
|
|
ok
it seems ok when i try to change
<!ENTITY LOCALHOST_SERVLET_CONTEXT "../../../rs/">
to
<!ENTITY LOCALHOST_SERVLET_CONTEXT "http://lab.uievolution.com/rs/">
but the debug windows it turns some exception, i am not sure whether it is a major problem.
anyway the application works fine.... but i still want something that runs in my local host.
error/warning messages below:
Compiling file:///C:/blabla/client/test.ujml ...
Compiling file:///C:/blabla/client/test.ujml ...
java.lang.IllegalArgumentException
at com.uievolution.player.core.F.available(Unknown Source)
at com.uievolution.player.core.F.onLoad(Unknown Source)
at com.uievolution.player.core.CI.onLoad(Unknown Source)
at com.uievolution.player.core.GI.I(Unknown Source)
at com.uievolution.player.core.FI.onLoad(Unknown Source)
at com.uievolution.player.core.DI.onLoad(Unknown Source)
at com.uievolution.player.core.HI.F(Unknown Source)
at com.uievolution.player.applet.S.F(Unknown Source)
at com.uievolution.player.core.HI.addElement(Unknown Source)
at com.uievolution.player.core.HI.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
|
|
|
cyberjaya
Junior Member

Posts: 15
Registered: 2007-6-17
Member Is Offline
|
posted on 2007-6-19 at 12:43 AM |
|
|
ok, here is the problem
in ziptocity.php
the sample file uses a old way to get value passed
$inputString = $HTTP_GET_VARS['uid'];
and i am using php 5.2.3 , and default it seems the above way is not acceptable in the lastest release of php
so
when i change
$inputString = $_GET['uid'];
the problem is solved.
but above java warning still exists.
|
|
|