Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add extra option?
Message
 
 
À
17/09/2014 13:00:35
Information générale
Forum:
Javascript
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01607633
Message ID:
01607742
Vues:
40
>>On that form there is another drop-down for the Salespoint Type. Certain types don't require item tree selected but most types require a selection. So, I am thinking how I should implement this. The non-0 item tree requirement is only for certain types and I am selecting the type.
>
>So you have multiple selects bound the same source ?
>In that case a directive is definitely the best option....

No, there are two separate columns in a table. One is Type and another is Item Tree Id. This part of the User Story in TFS is not yet spelled out completely, but as I understood, for certain types the Item Tree Id can not be 0. For other types it can be 0.

For now I have on my form:
 <div class="form-group">
            <label class="control-label col-md-3" title="ItemTree">Item Tree:</label>
            <div class="controls">
                <div class=" col-md-8 col-lg-9">

                    <select class="form-control" ng-model="currentSalespoint.iTreeTop"
                            ng-options="t.id as t.descrip for t in metaData.itemTrees">
                       
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3" title="SalespointTypes">Salespoint Types:</label>
            <div class="col-lg-6 col-md-6">
                <select class="form-control" ng-model="currentSalespoint.typeTmplId"
                        ng-options="s.groupId as s.groupName for s in metaData.salespointTypeGroups">                    
                </select>
            </div>
        </div>
They are currently in the different order (first item tree, then type, I think it's going to change). So, the tree is going to depend on the selection from the Types.

What do you have in mind for the directive?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform