Hi All,
I've set up a form for adding users and details to a database. I've then added a connector to list the members in brief (Member List), and a separate connector to view detail info about one member (Member Details). The separate details form has an edit record function, which can be used to update all fields.
Now I want to add another form to fill or edit only two fields of each member (not all of them) called "Member Payment Details", fields that will get updated by this special form from time to time as we record if a member has paid their membership fees.
I tried adding a link to a new, third connector using the:
Property from within my Member List connector. This sort of works (its a bit of a dirty solution to link straight to the edit record link), and I can save data into the database (update existing records) but it has two major draw backs.
1) There is no redirect property for the connector. Meaning after I save the data it always redirects to the main page for that connector (meaning I can't distinguish between submitted and cancelled form).
2) Sometimes (for new records it seems) I get a permissions error: Error 2 after clicking the link. This seems to go away (unconfirmed) either when I manually go to the connector, but I cannot be sure yet, it may also be to do with records that don't have data for these two fields.
The other method I wanted to try is using a form rather than a connector to achieve the same goal, but I worry that using a form will create a new entry (increment the cf_id) rather than updating existing ones. I'm also not sure how to go about it because there is no WHERE input available for forms (only on the connector).
Can anyone provide any insight as to what is the best approach to achieve this functionality?
I've set up a form for adding users and details to a database. I've then added a connector to list the members in brief (Member List), and a separate connector to view detail info about one member (Member Details). The separate details form has an edit record function, which can be used to update all fields.
Now I want to add another form to fill or edit only two fields of each member (not all of them) called "Member Payment Details", fields that will get updated by this special form from time to time as we record if a member has paid their membership fees.
I tried adding a link to a new, third connector using the:
<a href="http://*.com/member-payment.html?connectionname=MemberPayment&task=editrecord&cids=<?php echo $row->cf_id; ?>" title="Membership Payment">
Property from within my Member List connector. This sort of works (its a bit of a dirty solution to link straight to the edit record link), and I can save data into the database (update existing records) but it has two major draw backs.
1) There is no redirect property for the connector. Meaning after I save the data it always redirects to the main page for that connector (meaning I can't distinguish between submitted and cancelled form).
2) Sometimes (for new records it seems) I get a permissions error: Error 2 after clicking the link. This seems to go away (unconfirmed) either when I manually go to the connector, but I cannot be sure yet, it may also be to do with records that don't have data for these two fields.
The other method I wanted to try is using a form rather than a connector to achieve the same goal, but I worry that using a form will create a new entry (increment the cf_id) rather than updating existing ones. I'm also not sure how to go about it because there is no WHERE input available for forms (only on the connector).
Can anyone provide any insight as to what is the best approach to achieve this functionality?