Delete Object from a Custom Form

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Delete Object from a Custom Form

Post by customaware »

I have a Custom Form with the following tag to Edit the Object...

<a href="javascript:AwareApp.editObject('Solution',{ID},'popup');"><img src="lmsimages/edit.png" alt="" >&nbsp; Edit</a>

This works perfectly.

I expected to be able to Delete the Object using...

<a href="javascript:AwareApp.deleteObject('Solution',{ID});"><img src="lmsimages/delete.png" alt="">&nbsp; Delete</a>

But is does not work.

When I inspect a normal Delete button I can see there are only the two parameters, 'ObjectName', ObjectID

Can anyone suggest what the problem might be please?
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

Maybe you need to use
  • AwareApp.DeleteReferencesAction
Cheers
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Post by customaware »

Rennur,

How do you discover this stuff?

There is not a single reference to that function I can find in any of the docs or forum.

What parameters does it need?
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

Sorry since you are AwareApp.editObject, I thought you would be familiar with the other Javascript functions.

You can find it in AwareIM/aware_ext/aware_full.js

Support would be best consulted as to the correct function though.

Cheers
Post Reply