[Chameleon] RE: question
Jacob.Delfos at maunsell.com
Thu May 31 23:06:15 EDT 2007
Please CC to the list, because otherwise I might end up giving the same
explanation to 10 different people individually.
As I mentioned, you probably have to join your data. Meaning create one
single layer that has the information that you are after. Either that,
or you have to partially rewrite the widget. To get the functionality
you want would need some pretty elaborate customisation, so you should
probably just do joins on your data.
From: peli kifli [mailto:luz_fik017 at yahoo.com]
Sent: 1 June 2007 10:30
To: Delfos, Jacob
Subject: RE: question
I still have a trouble with my assignment.And sorry about my
Now , i will ask you in another way.What i' am understand here
is, if i want to make a link between two table (table in same database
and also , table in different database), i need to use and adjust the
LocateByAttribute widget.So, if you have any suggestion, please tell me
what are the proper widget i need to use.
As an example, i use the chameleon example that include in the
'ms4w PHP5 Base Installer version 2.2.3'.The example that i used is
(chameleon/samples/sample_enhanced_jsapi.phtml).In this example, i
already success to used the search function (in the HOW_TO_USE.txt) from
LocateByAttribute widget.And i use the search function(button) at the
sample_enhanced_jsapi interface to find the 'rail' record, i choose to
'gid' rail data.So, all the rail data that have the same 'gid'
data value that i insert in the search function will shown up in popup
interface , because i use the popup implementation.After that, i close
the rail record that shown up early and start the new searching.
Now i search the 'road' record, i also search the 'gid' data in
the road record.So, all the road data that have the same 'gid' data
value that i insert in the search function will shown up in popup
interface and will arranged it by the gid value.The gid value that shown
up is the number 1,2,3,4,5,...11... and so on.So, i want to get the
record from the rail table to display in another popup, that have the
same gid with the road 'gid' data by clicking the road 'gid' data that
shown up early in popup.For explanation, if i click the road 'gid' data
(number 1) so, all the record or data from the rail record that have the
same 'gid' data(number 1) will shown up in another popup.So, what can i
do, please help me
to solve this problem.Thank you.
"Delfos, Jacob" <Jacob.Delfos at maunsell.com> wrote:
The LocateByAttribute widget allows you to specify which
attributes you want shown in the initial results page, using the
"spatialsearchlist" metadata attribute. It's in the how_to_use.txt file
that comes with it.
If you want to join your data to other data, it's best
to do this in advance, using a database or a GIS (assuming your
relationship is one-to-one) rather than on the fly, because it is faster
and more straightforward. If your join is one to many, it would not be
easy. It would not be straightforward to adjust the LocateByAttribute
widget to do this.
To be honest, I don't understand your explanation of
what links to what, because you are mixing cities and states. Please let
me know if you still have trouble.
From: peli kifli [mailto:luz_fik017 at yahoo.com]
Sent: 31 May 2007 12:55
To: roix roix
Hi there,i'am now try to learn the chameleon
example for GIS web development
and try to use the LocateByAttribute file.Now i
want to display the specific result.
For example, when i type to find an area in USA,
so the list that can be found
and so on.And,in the california also,
all the list or data is list down.
So how can i make the coding to
make the list or data from another table that
have the same name to link,
As an example , table 1 have the california name
,and table two also have
the California name ,so the data that call above
will shown in the new windows or in the same frame.
Sorry about my English.If you not understand my
english.I will correct it and send it again.
Thank you for your attention.
Need a vacation? Get great deals to amazing
on Yahoo! Travel.
This email and any attachments are intended solely for the named
recipient and are confidential. The copying or distribution of them or
any information they contain by anyone other than the named recipient is
prohibited. If you have received this document in error, please notify
the sender and delete all copies from your computer system and destroy
all hard copies. It is the recipient's responsibility to check this
email and any attachments to this email for viruses before use.
Ready for the edge of your seat? Check out tonight's top picks
<http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/> on Yahoo! TV.
This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chameleon