Friday, May 14, 2010

Copy master data from another company

Run form 531 Setup Checklist
then click Function > Copy Data ...

ATAU ... (which one is better?)

Run form 70000 Company Copy Templates

Note to self:
NOT copied / need to be double-checked :
* Acc. Schedule Name AND Line
* Column Layout and Column Layout Name
* Analysis View  
* No. Series Line (Update: Remove from Copy Setup)
* Production BOM Lines (Update: Added to Copy Setup)
* Routing Lines (EXTERN HD tidak perlu ini)
* Item Units of Measure
* Shop Calendar Working Days (EXTERN HD tidak perlu ini)
* Manufacturing Setup (Update: Added to Copy Setup)
* S and R Setup
* P and P Setup
* GL Setup \ LCY Code
* Inventory Setup


Tuesday, May 11, 2010

Print from DOS app which only recognize LPT port

Issue:
You have laptop without LPT port but you're still using DOS app that will print only to LPT port

Solution 1:
If remote/network printer is available, use "NET USE LPT1 \\REMOTE\PRINTER"

Solution 2:
In stand-alone environment, try this:
HOWTO: Print to a USB Printer from DOS in Windows XP
http://geekswithblogs.net/dtotzke/articles/26204.aspx
Useful comment(s):
comment by bigwhite
comment by J.Jelicos

Solution 3:
If Parallel printer must attached directly to the laptop, use this:
Single Port PCMCIA Card LPT Parallel Card DB-25 Port SPP/ECP/EPP
www.qualitycables.com/productdetails1.cfm?sku=USBG-LPT-PCM&cats=99172

Retrieve Yahoo mail using Outlook

Only available for users of Yahoo Mail Plus paid service.
http://help.yahoo.com/l/us/yahoo/mail/classic/mailplus/pop/pop-35.html

For free service we must use additional software
http://email.about.com/cs/winw2previews/gr/yahoopops.htm

PC Games list

reasons why it’s worth to be a pcgamer
http://adrianwerner.wordpress.com/games-of-2010/

Wednesday, May 5, 2010

Retrieve web page via e-mail

Internet Access Through Email
www.livinginternet.com/e/ea_net.htm

Result:
Not WYSIWYG ie. images aren't displayed

Friday, April 30, 2010

Walkthrough: Released Prod. Order > Line > Prod. Journal

Line form
ShowProductionJournal
"Production Journal Mgt" codeunit > Handling
CreateJnlLines
InsertOutputJnlLine

Monday, April 26, 2010

AS: Defining cube role using script

Syntax:
http://msdn.microsoft.com/en-us/library/ms133261%28v=SQL.100%29.aspx

Sample 1:
' Create the XML syntax to be used for the SetPermissions method
' of the Role object.
sDimensionSecurity = " "DefaultMember=""[Store].[Store Country].&[USA]"" " & _
"VisualTotalsLowestLevel=""[Store].[Store City]"">" & _
" "DeniedSet=""{[Store].[Store Country].&[Canada]," & _
"[Store].[Store Country].&[Mexico]}"" " & _
"Description=""USA Store Restriction""/>" & _
"
"

' The preceding XML syntax limits the users of the database role
' to viewing only stores in the USA, by denying read access to
' stores associated with the Mexico and Canada members of the
' [Store Country] level of the Stores dimension.

dsoRole.SetPermissions "Dimension:Store", sDimensionSecurity

Sample 2:
AddCubeRole "srvr", "BA for MBS Navision 400", "Sales", "Test Role", "domain\test"

Sub AddCubeRole(sServer, sDatabase, sCube, sRoleName, sUserList)
Dim dsoServer
Dim dsoDb
Dim dsoCube
Dim dsoRole
Dim sDimSecurity

Set dsoServer = CreateObject("DSO.Server")
dsoServer.Connect sServer
Set dsoDb = dsoServer.MDStores(sDatabase)

'// If a role with the same name exists - remove it
If dsoDb.Roles.Find(sRoleName) Then
dsoDb.Roles.Remove (sRoleName)
End If
Set dsoRole = dsoDb.Roles.AddNew(sRoleName, sbclsRegular)
sDimSecurity = " " & _
" "UpperLevel=""[Principal Code].[Principal Code]"" " & _
"AllowedSet=""{[Principal Code].[Principal Code].&[01]}"" " & _
"/>" & _
"
"
dsoRole.UsersList = sUserList
dsoRole.SetPermissions "Dimension:Principal Code", sDimSecurity
dsoRole.Update

Set dsoCube = dsoDb.MDStores(sCube)
'// If a role with the same name exists - remove it
If dsoCube.Roles.Find(sRoleName) Then
dsoCube.Roles.Remove sRoleName
End If
dsoCube.Roles.AddNew sRoleName
dsoCube.Update

dsoServer.CloseServer

Set dsoCube = Nothing
Set dsoRole = Nothing
Set dsoDb = Nothing
Set dsoServer = Nothing

End Sub
---

Still don't know how to retrieve list of current permission.
Closest found so far:
Accessing Roles Permissions via DSO
ASP, DSO and Getting the UsersList from a role