Jump to content

This topic is 7919 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

IMHO - you are not passing any valid information for the delete. Get the record number from search or something, and then delete.

Also -- does Web Security db allow delete?

Posted

Yes, Web Security db allows delete. I guess I'm confused because the results file that contains the inlineaction is a result of a search for a specific file. The [FMP-CurrentRecID] tag works outside of the inlineaction tag but it will not work inside of it. I've even tried carrying the record ID value to the inlineaction via token, from one inline (-find) to another (-delete) and while the -find inline works fine, the -delete one doesn't, even when they are nested or on the same level.

At any rate, thanks for replying.

Posted

I have a database in which after a user does a successful find, the results page contains the following code:

Code:

[FMP-InlineAction: -db={FMP-CurrentDatabase}, -lay={FMP-CurrentLayout}, -format{FMP-CurrentFormat}, -recid={FMP-CurrentRecID}, -delete] [/FMP-InlineAction]

Can anyone tell me why this code, and about 1,000 other variations of it I've tried do not work. I can take the same code and change it to a find, pointing to a specific field and it will work, or I can hard code it and it will work (delete), but it will not work otherwise. The most consistant error I get is -1

Any help or advise would be greatly appreciated, thanks

Posted

I don't know if this helps but I have found that web companion and fmpro 5 have a problem with delete over the web. After a few it just stops working. You get the results page and you think everything has worked fine but you look in the database and nothing has been deleted. Stop fmpro 5 and try the same link again and it will delete the file, but after a few it will go back to not deleting. I have had to resort to using viewable as a field and just editing the record to switch that from yes or no. Then adding viewable=yes into all my search criteria.

Simon

  • 1 year later...

This topic is 7919 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.