Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Link on Foreign Key goes to empty form not Edit

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

  • davidosullivan
  • davidosullivan's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: -3
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?
The administrator has disabled public write access.

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

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

I look forwards.

Thanks.
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Posts: 132
  • Thank you received: 19
  • Karma: 7
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
The administrator has disabled public write access.

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

  • davidosullivan
  • davidosullivan's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: -3
Ahh cool, please keep us posted ;)
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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

  • davidosullivan
  • davidosullivan's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: -3
Thats brilliant! Thanks so much :)

This is a really fantastically made product. Very slick indeed. Great job.
The administrator has disabled public write access.
The following user(s) said Thank You: admin
Time to create page: 0.068 seconds

Get Started