Results 1 to 4 of 4

Thread: EditView Validations

  1. #1
    nnarayanan is offline Member
    Join Date
    Nov 2008
    Posts
    13

    Exclamation EditView Validations

    Hi,

    I am a new bee to SugarCRM and I have been using it for last couple of days. I have also gone throgh the Developer Manual. However I could not figureout how to do the following

    I have 2 tables one for student master and other for Agent Master.

    Now the form what I am going to develop is to take either student id or agent id

    and store it in a different table along with some date and some notes.

    While developing a form my idea is I will have the following fields

    Student Name : <selection> Agent Name : <Selection>
    Student Details : <display> Agent Details : <display>
    Date of Remark :
    Remarks : <text area>



    I am stuggling to implement the following

    a) if the student is selected then agent name should get cleared
    b) also once a student or agent is selected, I want the program to display their

    details like Name and address

    What I wanted to know is where and how to implement the above validation? Any help would be highly appreciated?

    Regards
    Narayanan

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: EditView Validations

    Hi Narayanan

    I´m a bit confused.
    Do you have one field for Student and another one to Agent?
    Can you provide us the current layout for this form?
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    nnarayanan is offline Member
    Join Date
    Nov 2008
    Posts
    13

    Default Re: EditView Validations

    Hi

    Lets say I have two fileds one for Student and Another for Agent

    When I select the Student Combo box; I want to perform some action like displaying student details and clearing agent detals area. In the same way If I select the Agent combo box, then I want to perform some action like displaying agent details and clearing student details.

    The layout is as follows

    Select the Student : <Combo Box> : Select the Agent <Combo Box>
    ==================================== ========================================

    Student Details: Agent Details:



    Both Student and Agent are kept in two different tables Student and Agent respectively. The idea is to understand is there a way to capture the event of a filed and perfrom action based on the event. In this case click event of the combo box (student / agent)

    Hope I am clear. Let me know if this is not clear.

    Regards
    Narayanan

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: EditView Validations

    Hi Narayanan

    My suggestion:
    Create a dropdown field which can manage the visibility of two panels (Student and Agent).
    When you choose Student from this new dropdown field the panel Student is displayed and when you choose Agent the Student panel is hidden and the Agent is displayed.

    Does it fit your needs?
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to refresh editview Page
    By rraushan2007 in forum Developer Help
    Replies: 1
    Last Post: 2008-09-24, 07:43 PM
  2. Implement Print Function on EditView
    By emillion in forum Developer Help
    Replies: 7
    Last Post: 2007-06-28, 05:28 PM
  3. Replies: 5
    Last Post: 2007-06-14, 09:05 PM
  4. Replies: 2
    Last Post: 2006-08-23, 06:08 PM
  5. Losing/setting contactID and name for the editview
    By sugarcare in forum Developer Help
    Replies: 11
    Last Post: 2006-08-05, 12:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •