Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

A question that I can not properly use reuse. 27 May 2013 19:50 #7236

  • selectmatica
  • selectmatica's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Buscando nuevos horizontes
  • Posts: 22
  • Thank you received: 0
Hi, a question that I can not properly use reuse.

Example:
table1: id_tabla1, name
table2: id_tabla2, name
table 3: id, id_tabla1 (combo), id_tabla2 (radio)

What I have to write on the reuse of Table 1 and 2 for redigir the table3 values​​?, Thanks.

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 27 May 2013 19:53 #7239

  • selectmatica
  • selectmatica's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Buscando nuevos horizontes
  • Posts: 22
  • Thank you received: 0
Hello, someone who can give me a help, thanks.

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 28 May 2013 12:15 #7242

I'm not sure I understand the question but if you use the foreign key data type in Table 3 for table 1 and table 2 then on the table 3 form you can use either a combo or radio buttons for those fields

Dave

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 28 May 2013 13:40 #7243

  • selectmatica
  • selectmatica's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Buscando nuevos horizontes
  • Posts: 22
  • Thank you received: 0
Sorry I do not understand the proposed solution. My question is what I have to put the pages of table1 and table2 reuse field to select by default the form field from table1 or table2 to pass to the form of table 3, thanks.

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 28 May 2013 15:27 #7246

sounds like you are trying to pre-fill fields ... there are numerous posts in the forums that might answer your questions so if you haven't done so, maybe try searching the forum if you haven't already done so

For example see the second post in this thread:

www.j-cook.pro/forum/7-design-your-appli...s-in-a-new-item#7020

Hope that helps ...

Dave

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 31 May 2013 13:07 #7266

  • selectmatica
  • selectmatica's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Buscando nuevos horizontes
  • Posts: 22
  • Thank you received: 0
I'm sorry, I can not run with field redirection reuse,? Someone with a very clear example to understand it and try it?, Thanks.

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 02 Jun 2013 07:38 #7274

  • selectmatica
  • selectmatica's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Buscando nuevos horizontes
  • Posts: 22
  • Thank you received: 0
I found the problem, I went into the field reuse the id field but this is hidden, so you will not recognize him.

The problem is that then I have to dupicar this field, creating a new one with the id field that I want to spend, thus having two different id but with the same function, how they can do better?

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 03 Jun 2013 12:06 #7282

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I never tried to impose the id.
Id is automatic incremental field. You cannot touch it. You cannot preset it.
In this case, you must create another field carrying this information. Another number.

To preset values (reuse functionalities, or direct in url), the field must be a Foreign Key.
If your field id is not a foreing key in the builder, Cook will not create the filters and the preset form values (for lists only)

Am I clear ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: A question that I can not properly use reuse. 04 Jun 2013 20:33 #7328

  • selectmatica
  • selectmatica's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Buscando nuevos horizontes
  • Posts: 22
  • Thank you received: 0
Understood, I decided to cook another area and then manually change the id, how I work, thanks.

By the way, I am using a translator so it might not be exactly what I say to my writing.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.108 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started