Delegate A/S

View Extender

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
#load @"_Config.fsx"
open _Config
open DG.Daxif

View.GenerateFiles(Env.dev, Path.daxifRoot,
  solutions = [|
    SolutionInfo.name
    |],
  entities = [|
    // eg. "systemuser"
    |])


#load @"viewExtenderData\_ViewGuids.fsx" 
#load @"viewExtenderData\_EntityRelationships.fsx" 
#load @"viewExtenderData\_EntityAttributes.fsx"

open ViewGuids
open EntityAttributes
open EntityRelationships

// define extensions e.g.:
// Views.Account.MyParentView
// |> View.Parse Env.dev
// |> View.ChangeId Views.Account.FirstChildView
// |> View.AddRelatedColumnFirst Account.Relations.AccountPrimarycontactid_ContactContactid [Contact.Fields.Address1_City] [400]
// |> View.UpdateView Env.dev
module _Config
namespace DG
namespace DG.Daxif
type View =
  private new : unit -> View
  static member AddColumn : column:IEntityAttribute -> width:int -> index:int -> view:View -> View
  static member AddColumnFirst : column:IEntityAttribute -> width:int -> view:View -> View
  static member AddColumnLast : column:IEntityAttribute -> width:int -> view:View -> View
  static member AddCondition : attributeEntity:EntityAttribute<'a,'b> -> operator:'b -> arg:'a -> filter:FilterExpression -> FilterExpression
  static member AddCondition2 : attributeEntity:EntityAttribute<'a,'b> -> operator:'b -> arg1:'a -> arg2:'a -> filter:FilterExpression -> FilterExpression
  static member AddConditionMany : attributeEntity:EntityAttribute<'a,'b> -> operator:'b -> arg:'a list -> filter:FilterExpression -> (FilterExpression -> FilterExpression)
  static member AddFilter : toAdd:FilterExpression -> filter:FilterExpression -> FilterExpression
  static member AddOrdering : column:IEntityAttribute -> ordering:OrderType -> view:View -> View
  static member AddRelatedColumn : rel:EntityRelationship -> columns:IEntityAttribute list -> columnWidths:int list -> indexes:int list -> view:View -> View
  ...

Full name: DG.Daxif.View
static member View.GenerateFiles : env:Environment * daxifRoot:string * ?entities:string [] * ?solutions:string [] * ?logLevel:LogLevel -> unit
module Env

from _Config
val dev : Environment

Full name: _Config.Env.dev
module Path

from _Config
val daxifRoot : string

Full name: _Config.Path.daxifRoot
module SolutionInfo

from _Config
val name : string

Full name: _Config.SolutionInfo.name