• Creating a time only field in a custom module

    Hello sugar developers, I am trying to create a time field which behaves like the time dropdown in the datetime combo. After doing some research, I have changed the type of the field to time in vardefs which has updated the database column type…
  • How to fetch related records in JavaScript

    Hi All, I trying to fetch related records using the following methods,but var parentBean = app.data.createBean('parentmodule', { id: parentId }); var relatedRecords = app.data.createRelatedCollection(parentBean, 'relatedmodule'); relatedRecords.fetch…
  • Get user default team from js via object

    Hi , How can I get user default team from js via object? I can get id from user object but for team, there are contain all of team of this user no clue for get default team. ./custom/clients/base/view/team-view.js ( { className : 'my-view tcenter' , initialize…
  • How do I get url via javascript ?

    Hi, I try to get by this code but Sugar throw error "cannot render view please contact technical support". How to disable sub panel row actions conditionally based on parent model? I copy from this issue. Code which I comment makes this error. in /custom…