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

TOPIC:

[SOLVED] Link on Foreign Key goes to empty form not Edit 13 Feb 2012 11:39 #1256

Hi there,

First of all apologies for posting this twice, but I think I had put this in the wrong category (its in the debug category too but I cannot see where to delete it)

I am just getting to grips with this so apologies if I have missed anything and this is not a bug

What I have is two very simple tables, PUBLICATION and ISSUES

PUBLICATION has
publication_name

ISSUES has
issue_name | publication_name (this is a foreign key that shows a drop down list on the ISSUES edit form of publication names from the PUBLICATION table).

When I show the issue data in list view, if I show the publication ID as a link, clicking it takes me to the edit form for that publication. This is what I want to happen.

If I show the Publication Name in the issue list view, clicking the name takes me to an empty publication edit view.

I want to show the Publication name and have it link to the edit view for that publication ID.

Looking at the generated links I can see what is going wrong.

The link on the FK displayed using the publication name is:-
sandbox.cms25.j-cook.pro/administrator/i...blication&cid[]=
The link on the FK displayed that uses the publication ID is :-
sandbox.cms25.j-cook.pro/administrator/i...lication&cid[]=1

So you can see that one has a cid and the other does not.

Is there something I missed here or is this a bug?

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

Re: Link on Foreign Key goes to empty form not Edit 13 Feb 2012 12:18 #1258

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
A bug.

I look forwards.

Thanks.
Coding is now a piece of cake

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

I can not see layout with values-no id in URL 13 Feb 2012 13:09 #1264

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 132
  • Thank you received: 19
Hello,

I try to descripe my problem as clear as I can.
Please admin go to my project: Training

When I click on menu: exercises I can see my entered exercises. Now I want to open cviko1 from column name,
it brings me in view layout of the exercise, this works perfect. Now, again I click on menu: exercises but I want see Abs from Group column(foreign key),
this should bring me in view layout of the group but I can only see titles with blank values. Values like: Name, description and username.
If I look at URL I can see there is no id. URL should ends with id of the group that I want see.

I am not sure what I am doing wrong.

Thanks in advance

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

Re: Link on Foreign Key goes to empty form not Edit 13 Feb 2012 13:46 #1265

Ahh cool, please keep us posted ;)

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

Re: Link on Foreign Key goes to empty form not Edit 13 Feb 2012 14:16 #1267

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.


Please regenerate.

users that don't want to regenerate :

The problem is in the form template file.
remove the '_' char preceding the concerned var.
Coding is now a piece of cake

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

Re: Link on Foreign Key goes to empty form not Edit 13 Feb 2012 14:21 #1270

Thats brilliant! Thanks so much :)

This is a really fantastically made product. Very slick indeed. Great job.
The following user(s) said Thank You: admin

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

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

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started