How delete a document from Navision

Leroy
Member Posts: 199
Dear sirs, on Item label I've a button that, on push, go to an specific route on my network to look for an pdf archive. This archive, has previously added to the Item label thought a route link.
Now I want to delete some pdf's from my network thought Navision following the marked route.
I've got erase only the route puttin OnPush from button the code:
IF ("Technical route" <> '') THEN
delete;
This instruction delete the route market from Navision to the pdf, but doesn't delete the pdf document. Does anybody know how can I delete a document that is in my network following a route?. Sorry if I haven't explained well.
Thanks in advance.
Now I want to delete some pdf's from my network thought Navision following the marked route.
I've got erase only the route puttin OnPush from button the code:
IF ("Technical route" <> '') THEN
delete;
This instruction delete the route market from Navision to the pdf, but doesn't delete the pdf document. Does anybody know how can I delete a document that is in my network following a route?. Sorry if I haven't explained well.
Thanks in advance.
0
Comments
-
-
Thanks, but it doesn't get me the FILE.DELETE instruction. I've Attain 3.70, this could be the problem?.
Thanks.0 -
try this : ERASE('path\filename.pdf');0
-
Perfect!, was Erase. It delete the file from the path, but, how can I do to also delete the route writes on "Technical route" field?.
Thanks for help.0 -
"Technical route" := ''; ???0
-
-
Thanks both for help;
"Technical route" := ''; ???
I imagined somethig like that but don't work. Any idea else, please?.0 -
how can you have technical route compiled if you've deleted the entire record (your previous instruction)?
IF ("Technical route" <> '') THEN delete;
what do you want to do?Delete the nav doc + the pdf doc in the path of tecnical route?if so use this codeIf ("Technical route" <> '') then ERASE('path\filename.pdf'); //I think this is the "technical route" field DELETE(TRUE); //this will also delete the lines of the lines because of (TRUE), supposing you're using standard documents
0 -
Thanks for reply. Sorry, but if i do that it tries to erase the whole Item label!! (I put the code in OnPush)
In this code:
ERASE('path\filename.pdf'); I put also ERASE("Technical route"); because is different in each Item label, I need it automatic; but, evenly, it doesn't work.
Thanks for help.0 -
Oh!!, thanks, it works with "modify" at the end; thanks everybody for help.0
-
if you are a developer, you should really read some manuals before doing something; if you are a customer, ask your partner for some training. You must know modify and delete instructions as if they're your name!!0
-
Thanks for advise, but I'm the network administrator from my company and have permission to unfoldment some little things in Navision; by the other side I always practical in a test database.
Thanks.0
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