Project

General

Profile

Actions

Activity #2556

closed

Feature #3752: Design of the web framework for Data Centre Software

Feature #1850: Design and Development for web based ANRS

Module #2148: Developement for Configuration screens

Activity #2459: Development for UI mission deployments

Develop code to populate dropdowns

Added by Thara S Pillai about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
05/15/2024
Due date:
05/17/2024
% Done:

100%

Estimated time:
Planned Due Date:

Description

  • Create a javascript file under utils folder with the following:
var loadComboWithJSONArray = function(comboId,jsonObj,key,val,checkboolean)
    {
        var add = true;
        $('#'+comboId).empty();
        $('#'+comboId).append('<option value="0">--Select--</option>');
        $.each(jsonObj,function(idx,ob){
            add = true;
            if(checkboolean !=null)
                {
             if(checkboolean(ob))
                 $('#'+comboId).append('<option value="'+ob[key]+'">'+ob[val]+'</option>');
             else
                 $('#'+comboId).append('<option style="color:red;" disabled value="'+ob[key]+'">'+ob[val]+'</option>');
                }
            else
                $('#'+comboId).append('<option value="'+ob[key]+'">'+ob[val]+'</option>');
        });
    };
  • Include js in data capture forms to populate drop downs.
Actions #1

Updated by Thara S Pillai about 2 years ago

  • Parent task changed from #2521 to #2459
Actions #2

Updated by Siji Mathew about 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20
Actions #3

Updated by Siji Mathew about 2 years ago

  • % Done changed from 20 to 60
Actions #4

Updated by Siji Mathew about 2 years ago

  • % Done changed from 60 to 70
Actions #5

Updated by Siji Mathew about 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 100
Actions #6

Updated by Thara S Pillai almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF