get table property: DataPerCompany

dule0612
Member Posts: 7
hi,
is it possible to get a certain table-property out of the sourcecode (in this case datapercompany) ?
i'm processing all fields of all tables of all companies with recordref and fieldref and do not want to repeat tables with property datapercompany=no because of the hughe number of records.
are table and field properties saved in an "unvisible-table" like field-table?
is it possible to get a certain table-property out of the sourcecode (in this case datapercompany) ?
i'm processing all fields of all tables of all companies with recordref and fieldref and do not want to repeat tables with property datapercompany=no because of the hughe number of records.
are table and field properties saved in an "unvisible-table" like field-table?
0
Comments
-
Just an idea without testing, have you tried the object table with type TableData? My guess would be that shared tables are there with company blank.0
-
you are right, this will work. i checked the object table before but didn't consider the option tabledata, only the option table.
thank you.
best regards
dule0 -
Hi
Quite an old thread, but exactly what I was looking for...
I have tried this:Object.SETRANGE(Type, Object.Type::TableData); Object.SETRANGE("Company Name", ''); Object.SETRANGE(ID, 225); //"Post Code" //Object.SETRANGE(ID, 17); //"G/L Entry" IF Object.FINDFIRST THEN MESSAGE('Datepercompany=false') ELSE MESSAGE('Datepercompany=true (standard)')
But in 2013 R2 at least I don't see a difference between Table Post Code ("Shared Table") and G/L Entry ("normal table"). What's wrong here?
Thx in advance!
Thomas0 -
ta5 wrote:Hi
Quite an old thread, but exactly what I was looking for...
I have tried this:Object.SETRANGE(Type, Object.Type::TableData); Object.SETRANGE("Company Name", ''); Object.SETRANGE(ID, 225); //"Post Code" //Object.SETRANGE(ID, 17); //"G/L Entry" IF Object.FINDFIRST THEN MESSAGE('Datepercompany=false') ELSE MESSAGE('Datepercompany=true (standard)')
But in 2013 R2 at least I don't see a difference between Table Post Code ("Shared Table") and G/L Entry ("normal table"). What's wrong here?
Thx in advance!
Thomas
hi
NAV 2013r2 due to teenant changes don't add multiple "Tabledata" record (one for every company) so this suggestion don't works anymore.
A workaround is to check "table information" table but it's quite slow because of table record count & size field calculation.
Bye
MatteoReno Sistemi Navision Developer0 -
Hi Matteo
This works for me. An empty company field in table "Table Information" means Datapercompany=false.
Btw: In 2009R2 both solutions work (using Table "Object" and "Table Information").
Thanks a lot
Thomas0 -
This is now partially working (nav 2016) because the Table Information does not contain all the tables as for example the Web Service table (2000000076) is missing?!?!?! Anyone knows why? and how to have the full list of tables with datapercompany no?Why don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11230 -
This is now partially working (nav 2016) because the Table Information does not contain all the tables as for example the Web Service table (2000000076) is missing?!?!?! Anyone knows why? and how to have the full list of tables with datapercompany no?
In 2016 there is an new virtual table 2000000136 (Table Metadata). Simply create a list page for this table and set the filter for "Data per Company" to NO. Then you'll have the full list.0 -
Of course! Thank you!Why don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11230
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions