CDML newbie 
Author Message
 CDML newbie

Hi,

Sorry if my question is as bit trivial, but I've trawled this group
for an answer to no avail. We are a small company, and we use FMP for
project management, where every project is identified by its unique
number and customer name. We'd like to publish project data on the
Web, so that every customer can see his/her own projects, but not
others. I'd guess it's possible to achieve using CDML, but it's
completely new to me. I'd greatly appreciate it, if anyone could help
me with this. A simple HTML file with CDML markup would be just
perfect.

Thank you in advance!

Regards,
Dmitri



Mon, 21 Mar 2005 17:58:33 GMT
 CDML newbie

Dmitri
If you are using Filemaker web security, then you can use
[FMP-ClientUserName] within your search to prohibit your user from seeing
others projects. Use the following code in your search document:-

<INPUT TYPE="hidden" NAME="-op" VALUE=eq>
<INPUT TYPE="hidden" NAME="yourfieldname" VALUE="[FMP-ClientUserName]">

This will insert and additional search criteria automatically into your web
page.

Hope this helps.
Regards
Colin Bannister UK


Quote:
> Hi,

> Sorry if my question is as bit trivial, but I've trawled this group
> for an answer to no avail. We are a small company, and we use FMP for
> project management, where every project is identified by its unique
> number and customer name. We'd like to publish project data on the
> Web, so that every customer can see his/her own projects, but not
> others. I'd guess it's possible to achieve using CDML, but it's
> completely new to me. I'd greatly appreciate it, if anyone could help
> me with this. A simple HTML file with CDML markup would be just
> perfect.

> Thank you in advance!

> Regards,
> Dmitri



Mon, 21 Mar 2005 21:59:19 GMT
 CDML newbie

Quote:

> Hi,

> Sorry if my question is as bit trivial, but I've trawled this group
> for an answer to no avail. We are a small company, and we use FMP for
> project management, where every project is identified by its unique
> number and customer name. We'd like to publish project data on the
> Web, so that every customer can see his/her own projects, but not
> others. I'd guess it's possible to achieve using CDML, but it's
> completely new to me. I'd greatly appreciate it, if anyone could help
> me with this. A simple HTML file with CDML markup would be just
> perfect.

Firstly, you need to use Custom Web Publishing. See
http://bull.ucc.usyd.edu.au/fm_doit/ for some tips
on setting this up.

Then you use the Web Security database - one login for
each company. Then you can restrict searches using
this login as a parameter (see the other post for
details on this)

Webko



Tue, 22 Mar 2005 14:02:49 GMT
 CDML newbie
Hi Dmitri,

Colin's suggestion, of including the ClientUserName in the search
criteria is an extremely good one, and should prevent 95% of users
from poking around other projects, not related to them.

However, I would also suggest that you include a CDML If Statement in
any HTML Pages used to display project data, to ensure that those 5%
of nosy users (of which I am one) cannot access projects not related
to them.

I am not certain of the exact format (as I have tried similar tags
previously, but haven't nailed it as yet) but the psuedo code would
be:

IF ClientUserName = <FMP Field containing Project UserName>
THEN
    Coding of HTML Page, with all FMP Replacement Tags, etc.
ELSE
    "You are not authorised to view this project."

If one of the CDML Masters could help turn this into valid CDML
Coding, it would be appreciated (I seem to have trouble comparing two
fields, or a field and a CDML Status Function in an If Statement)

Luke

Quote:

> Dmitri
> If you are using Filemaker web security, then you can use
> [FMP-ClientUserName] within your search to prohibit your user from seeing
> others projects. Use the following code in your search document:-

> <INPUT TYPE="hidden" NAME="-op" VALUE=eq>
> <INPUT TYPE="hidden" NAME="yourfieldname" VALUE="[FMP-ClientUserName]">

> This will insert and additional search criteria automatically into your web
> page.

> Hope this helps.
> Regards
> Colin Bannister UK



> > Hi,

> > Sorry if my question is as bit trivial, but I've trawled this group
> > for an answer to no avail. We are a small company, and we use FMP for
> > project management, where every project is identified by its unique
> > number and customer name. We'd like to publish project data on the
> > Web, so that every customer can see his/her own projects, but not
> > others. I'd guess it's possible to achieve using CDML, but it's
> > completely new to me. I'd greatly appreciate it, if anyone could help
> > me with this. A simple HTML file with CDML markup would be just
> > perfect.

> > Thank you in advance!

> > Regards,
> > Dmitri



Mon, 28 Mar 2005 08:43:53 GMT
 CDML newbie

Quote:

> Hi Dmitri,

> Colin's suggestion, of including the ClientUserName in the search
> criteria is an extremely good one, and should prevent 95% of users
> from poking around other projects, not related to them.

> However, I would also suggest that you include a CDML If Statement in
> any HTML Pages used to display project data, to ensure that those 5%
> of nosy users (of which I am one) cannot access projects not related
> to them.

> I am not certain of the exact format (as I have tried similar tags
> previously, but haven't nailed it as yet) but the psuedo code would
> be:

> IF ClientUserName = <FMP Field containing Project UserName>
> THEN
>     Coding of HTML Page, with all FMP Replacement Tags, etc.
> ELSE
>     "You are not authorised to view this project."

[FMP-If: FieldUserName .eq. FMPClientUserName]
Code for nice page
[FMP-Else]
Code for not authorised page
[/FMP-If]

Quote:
> If one of the CDML Masters could help turn this into valid CDML
> Coding, it would be appreciated (I seem to have trouble comparing two
> fields, or a field and a CDML Status Function in an If Statement)

It's not that hard. I also tend to use a .neq. to give the error
first, so that it defaults to Not Authorised if things go wrong...

Cheers

Webko

- Show quoted text -

Quote:

> Luke


> > Dmitri
> > If you are using Filemaker web security, then you can use
> > [FMP-ClientUserName] within your search to prohibit your user from seeing
> > others projects. Use the following code in your search document:-

> > <INPUT TYPE="hidden" NAME="-op" VALUE=eq>
> > <INPUT TYPE="hidden" NAME="yourfieldname" VALUE="[FMP-ClientUserName]">

> > This will insert and additional search criteria automatically into your web
> > page.

> > Hope this helps.
> > Regards
> > Colin Bannister UK



> > > Hi,

> > > Sorry if my question is as bit trivial, but I've trawled this group
> > > for an answer to no avail. We are a small company, and we use FMP for
> > > project management, where every project is identified by its unique
> > > number and customer name. We'd like to publish project data on the
> > > Web, so that every customer can see his/her own projects, but not
> > > others. I'd guess it's possible to achieve using CDML, but it's
> > > completely new to me. I'd greatly appreciate it, if anyone could help
> > > me with this. A simple HTML file with CDML markup would be just
> > > perfect.

> > > Thank you in advance!

> > > Regards,
> > > Dmitri



Mon, 28 Mar 2005 09:04:34 GMT
 CDML newbie
I concur that this method is kick-butt. FMP-IF is my god.

I even use an inline call in the negative part of the IF that creates a
record in my log file so I have a record of someone getting nosey (or
more likely that I have miscoded something)

PB

Quote:


>>Hi Dmitri,

>>Colin's suggestion, of including the ClientUserName in the search
>>criteria is an extremely good one, and should prevent 95% of users
>>from poking around other projects, not related to them.

>>However, I would also suggest that you include a CDML If Statement in
>>any HTML Pages used to display project data, to ensure that those 5%
>>of nosy users (of which I am one) cannot access projects not related
>>to them.

>>I am not certain of the exact format (as I have tried similar tags
>>previously, but haven't nailed it as yet) but the psuedo code would
>>be:

>>IF ClientUserName = <FMP Field containing Project UserName>
>>THEN
>>    Coding of HTML Page, with all FMP Replacement Tags, etc.
>>ELSE
>>    "You are not authorised to view this project."

> [FMP-If: FieldUserName .eq. FMPClientUserName]
> Code for nice page
> [FMP-Else]
> Code for not authorised page
> [/FMP-If]

>>If one of the CDML Masters could help turn this into valid CDML
>>Coding, it would be appreciated (I seem to have trouble comparing two
>>fields, or a field and a CDML Status Function in an If Statement)

> It's not that hard. I also tend to use a .neq. to give the error
> first, so that it defaults to Not Authorised if things go wrong...

> Cheers

> Webko

>>Luke


>>>Dmitri
>>>If you are using Filemaker web security, then you can use
>>>[FMP-ClientUserName] within your search to prohibit your user from seeing
>>>others projects. Use the following code in your search document:-

>>><INPUT TYPE="hidden" NAME="-op" VALUE=eq>
>>><INPUT TYPE="hidden" NAME="yourfieldname" VALUE="[FMP-ClientUserName]">

>>>This will insert and additional search criteria automatically into your web
>>>page.

>>>Hope this helps.
>>>Regards
>>>Colin Bannister UK



>>>>Hi,

>>>>Sorry if my question is as bit trivial, but I've trawled this group
>>>>for an answer to no avail. We are a small company, and we use FMP for
>>>>project management, where every project is identified by its unique
>>>>number and customer name. We'd like to publish project data on the
>>>>Web, so that every customer can see his/her own projects, but not
>>>>others. I'd guess it's possible to achieve using CDML, but it's
>>>>completely new to me. I'd greatly appreciate it, if anyone could help
>>>>me with this. A simple HTML file with CDML markup would be just
>>>>perfect.

>>>>Thank you in advance!

>>>>Regards,
>>>>Dmitri



Mon, 28 Mar 2005 12:55:40 GMT
 
 [ 6 post ] 

 Relevant Pages 

1. Newbie cdml q., part ii: update + insert new detail record + print out both

2. Newbie cdml q., part ii: update + insert new detail record + print out both

3. CDML Literal Search (newbie question)

4. Newbie: CDML variable -Script

5. CDML and XML in 8 Hours

6. cdml with validation in fmp

7. CDML / Web Publishing

8. Filemaker 6 and CDML mailto

9. I've lost my CDML Reference file!

10. HELP - CDML Hosting, Unable to Access Format Files

11. CDML manual?


 
Powered by phpBB® Forum Software