CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Disappearing Button

Print topic Send  topic

Author Message
DataDoIt
Posted: 01/15/2004, 9:17 PM

CCS2; PHP4; MySQL

I want to create a button that does an action. I use Record Builder wizard
to create a form, with Insert, Update, Delete, Cancel buttons. I remove the
Update and Delete buttons, and then Add Custom Code to the Insert button's
Server On Click event. After I insert my custom code, I can see the Insert
button in HTML view, but when I go to view the PHP page, the button's gone.

What's happened to my button? Where'd it go?

peterr


Posts: 5971
Posted: 01/15/2004, 7:12 PM

The Insert button does not appear (it is hidden) if for some reason the record cannot be inserted. For example if the security/restrictions don't allow this, or if the there is a URL parameter containing an existing record's key, or if the button's "Operation" property is not set to "Insert", etc.

Please check:
1. Is your Insert button displayed OK without using your custom code? If so, what does your custom code do?
2. What is the URL of the PHP page? Does it contain an additional parameters or ends with ".php"?
3. Is the "Operation" property of the button set to "Insert"?
4. Is there any security set in the parent form's "Restricted" property?
5. Is the "Allow Insert" property of the parent form set to "Yes"?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
DataDoIt
Posted: 01/16/2004, 9:54 AM

Thanks Peter. Good info. However, all below checks out.

I used the record builder to show a record on a PHP page. I chose "Allow
Insert", for which it gives me an "Add" button in the design view. I
display only a single record in the database by using the Data Source
Builder (LastName = Jones). Returns a single record as I'd like when I
"review data". The "Add" button doesn't display when I load the page, the
data does. Even the Cancel button displays. This is without Custom Code.

Even when I just attempted to add my own button with no code, it doesn't
show. I just want a button so I can make it do something (like display a
popup window, launch a PDF document, whatever). Obviously I'm missing
something.

Thanks.

-MR

"peterr" <peterr@forum.codecharge> wrote in message
news:5400756bb6b355@news.codecharge.com...
> The Insert button does not appear (it is hidden) if for some reason the
record cannot be inserted. For example if the security/restrictions don't
allow this, or if the there is a URL parameter containing an existing
record's key, or if the button's "Operation" property is not set to
"Insert", etc.
>
> Please check:
> 1. Is your Insert button displayed OK without using your custom code? If
so, what does your custom code do?
> 2. What is the URL of the PHP page? Does it contain an additional
parameters or ends with ".php"?
> 3. Is the "Operation" property of the button set to "Insert"?
> 4. Is there any security set in the parent form's "Restricted" property?
> 5. Is the "Allow Insert" property of the parent form set to "Yes"?
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.codecharge.com

Walter Kempees
Posted: 01/26/2004, 1:41 AM

sorry if I overstep Peterr but,
as I understand youe described problem, your form is in EditMode and not
Insert.
Therefore the insert Button is not available.

Could you not move the code added to the Insert Button, to the Update Button
?
Have it do what you want, and influence the defautl Behaviour.

Cia Walt


> I display only a single record in the database by using the Data Source
> Builder (LastName = Jones). Returns a single record as I'd like when I
> "review data".


"DataDoIt" <mike@datadoit.com> schreef in bericht
news:bu8tum$qle$1@news.codecharge.com...
> Thanks Peter. Good info. However, all below checks out.
>
> I used the record builder to show a record on a PHP page. I chose "Allow
> Insert", for which it gives me an "Add" button in the design view. The
"Add" button doesn't display when I load the page, the
> data does. Even the Cancel button displays. This is without Custom Code.
>
> Even when I just attempted to add my own button with no code, it doesn't
> show. I just want a button so I can make it do something (like display a
> popup window, launch a PDF document, whatever). Obviously I'm missing
> something.
>
> Thanks.
>
> -MR
>
> "peterr" <peterr@forum.codecharge> wrote in message
>news:5400756bb6b355@news.codecharge.com...
> > The Insert button does not appear (it is hidden) if for some reason the
> record cannot be inserted. For example if the security/restrictions don't
> allow this, or if the there is a URL parameter containing an existing
> record's key, or if the button's "Operation" property is not set to
> "Insert", etc.
> >
> > Please check:
> > 1. Is your Insert button displayed OK without using your custom code? If
> so, what does your custom code do?
> > 2. What is the URL of the PHP page? Does it contain an additional
> parameters or ends with ".php"?
> > 3. Is the "Operation" property of the button set to "Insert"?
> > 4. Is there any security set in the parent form's "Restricted" property?
> > 5. Is the "Allow Insert" property of the parent form set to "Yes"?
> > _________________
> > Peter R.
> > YesSoftware Support Representative
> > http://support.codecharge.com
>
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.