Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8834285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:58:41+00:00 2026-06-14T08:58:41+00:00

Im stuck again. Its very frustrating coming from a ruby background. I have 3

  • 0

Im stuck again. Its very frustrating coming from a ruby background.

I have 3 domains. Domain A has many domain B’s. Domain A hasMany Domain C’s

I want to be able to access domain C’s records in domain B’s view so a user can select a domain C template and have it inserted into the textarea of domain B’s edit/create field. Obviously this will come after with javascript.

The story – A user creates a publication which is attached to a portfolio. The user when creating or editing a publication can choose a template to insert into a publication. The user should be able to choose from a list of templates assigned to the portfolio and when they choose a template from a list, it automaticaly inserts to the textarea of that publication during edit or create.

My issue is that I cannot get domain C to load any results in the domain B view. Nothing at all. I have tried g:select, g:link, href, what ever I try I can seem to get any results showing.

The views/controllers are standard template generated.

My domains/models are as follows

class Portfolio {

    static hasMany = [publications:Publication, pubtempl: Templatepublication]

class Publication {

    static belongsTo = [portfolio: Portfolio]

class Templatepublication {

   Cstatic belongsTo = [portfolio: Portfolio]

Edit:

this is the gsp page tags being used

<g:select name="templatepublication.id"
from="${spotlight.pubtemplates.Templatepublication.list()}" 
optionKey="id" required="" 
value="${portfolioInstance?.pubtempl?.id}" class="many-to-one"/>`
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:58:42+00:00Added an answer on June 14, 2026 at 8:58 am

    What are trying to do “in domain B view”? Can you post your view code?

    Like this? (I mostly copied a grails documentation example)

    <g:select name="bInstance.a.c.id"
          from="${C.list()}"
          value="${bInstance.a?.c?.id}"
          optionKey="id" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application, I have URN-identified data coming in from the server. I'm in
After receving some help from another very helpful member I'm stuck at another point
Once again, sorry if this has been asked before and if its too specific
OK I'm stuck again, this time it's a problem with the regex... Was searching
I got stuck again between browsers compatability issues, what I was trying todo is
Stuck on KVCs in Obj-C again. I am wanting to use KVC to find
Hello again codes masters, I'm stuck at this piece of codes for dropdown menu.
I am once again a bit stuck in my practising. I want an MP3
Once again my silliness has struck. I would like to thank everyone who helped
Kinda stuck here... I have an application with lets say 5000 rows of data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.