tosa500
Forum Replies Created
-
Forum: Plugins
In reply to: [ABASE] Problem displaying table with foreign keysOne more suggestion:
Let’s say we have a table view with rlink which takes us to another page where we add/update/delete records. I’d like to have a url in the “form” shortcode which would take me back to updated table. Could you do that?
CheersForum: Plugins
In reply to: [ABASE] Problem displaying table with foreign keysHello Richard. Sorry for a long delay.
I can confirm installing the latest version fixed my problem.
I’ve got another question:
In example 8 there is a table class shown with all the elements of table teachers. But if I don’t want all the fields from table teachers to be shown, I can’t do that. Would it be possible for you to add
columns=”name,id_teacher|forename,id_teacher|surname” so we could control what fields we want to display, similar to example 7?One thing that is also missing in your plugin, or I missed that in your documentation is how to delete a record. Is it possible to do that?
Thanks a lot!
Forum: Plugins
In reply to: [ABASE] Problem displaying table with foreign keysThank you for the reply. Result from the above shortcodes:
CREATE TABLEclass(
id_classint(1) NOT NULL AUTO_INCREMENT,
nameint(11) NOT NULL,
id_teacherint(1) NOT NULL,
PRIMARY KEY (id_class),
KEYid_teacher(id_teacher),
CONSTRAINTclass_ibfk_1FOREIGN KEY (id_teacher) REFERENCESteachers(id_teacher)
) ENGINE=InnoDB DEFAULT CHARSET=latin1CREATE TABLE
teachers(
id_teacherint(1) NOT NULL AUTO_INCREMENT,
forenamevarchar(16) NOT NULL,
surnamevarchar(16) NOT NULL,
phonevarchar(10) NOT NULL,
PRIMARY KEY (id_teacher)
) ENGINE=InnoDB DEFAULT CHARSET=latin1