[development-axapta] WinApiServer

2011-01-17 Thread jquinteroz
Hello forum!:

We have problems with this api:
WinApiServer::Move.
We added permissions and the following error appears:

Exception has been thrown 
by the target of an invocation 
--System unauthorized AccessException::Access to the 
path is denied at System_IO_Error(Int 32 error...)

When I use WinApi::Move it works without problems 
but this api does not works in batch mode.

Here the code:

static boolean MoveFile(FileName _FileNameFrom, FileName _FileNameTo) 
{ 
set permissionSet = new Set(Types::Class); 
boolean ret; 
; 
CodeAccessPermission::revertAssert(); 
permissionSet.add(new FileIOPermission(_FileNameFrom, 'rw')); 
permissionSet.add(new FileIOPermission(_FileNameTo, 'rw')); 
CodeAccessPermission::assertMultiple(permissionSet); 

try 
{ 

ret = WinAPIServer::moveFile(_FileNameFrom,_FileNameTo); 

Any ideas?.




[development-axapta] Dialog data check

2009-06-04 Thread jquinteroz
Hi!:

I have the following situation:

I have a form, this form has a button Copy.
I neeed to copy current selected record in a grid 
in order to create another record.
I did that in clicked method.
Now, the id of new record is not a sequential number,
it is a manual number.
I created a dialog with the id field.
But, I need to check this id (if exists a record
with this id I need to return to display the dialog).
How I do that?.




[development-axapta] Issue with service item (FIFO)

2009-05-14 Thread jquinteroz
Hi!:

We have the following issue:

We are using FIFO cost method.
We have an item like services in order to use it
for packaging cost purposes.

We installed las service pack SP5 for Axapta 3.0.
Now in this month we have a problem closing inventory.
The system is calculating loss/profit for services items!.
In which place in Axapta do I need to configurate something
in order to avoid this?.

 



[development-axapta] Where is comming from this transaction?

2009-04-14 Thread jquinteroz
Hi!:

I have a lot of transactions like this in the end of year process:

DatePhysical Qty TransType Voucher InventTransId StatusRece 
13/31/2008 1,159 Profit/Loss ICV00109 L0009 Purchasing 

In InventTrans table. I looked for original documents using
InventTransId but the form don't show any original
document for thatI searched also in InventTransPosting
but I don't find any related document...
How I can find which is the related document?.


-- 
Joe




[development-axapta] Dynamic height property

2009-01-13 Thread jquinteroz
Hi!:

I have the next issue:

I need to make a change in SalesInvoice.
In custInvoiceTrans, the field name (for us is the item name).
In InventTable this field allows a long description.
In salesInvoice the lenght of this field is 65 characters.
When I change to dynamicheight to yes, does not work.
When I change the width property to column width 
dynamic height works but the item description write until
the unit column.
Dioes exists a way to print 65 characters and keep 
dynamic height working?.
I am in Axapta V3 SP5.

Regards.




[development-axapta] Resizing ToolBar

2008-10-02 Thread jquinteroz
Hi!:

I am making a form that is showed in a PDT.
But, like the space in PDT is reduced, the Toolbar
use almost a inch just above of the form.
Does exists a way to resize the ToolBar?.

Example:

File  Edit Tools  Command ...

|  |

---
| Form Title
---


Regards.




[development-axapta] Extrain behavoir in While select statement

2008-07-16 Thread jquinteroz
Hi!:

I noted a extrain behavoir in a while select 
statement.
I am using a temporary table.
I am using Axapta V3 SP6.
The method is the following:

void clicked()
{
TmpXYZShipDocsshipDocs = TmpXYZShipDocs;
SalesId xSalesId;
;

While Select shipDocs where shipDocs.Check == NoYes::Yes
{
   if (shipDocs.RecId  shipDocs.Check == NoYes::Yes
 shipDocs.SalesId != xSalesId)
{
super();
xSalesId = shipDocs.SalesId;
TmpXYZShipDocs_ds.executeQuery();

}
else
if(!shipDocs.RecId)
{
TmpXYZShipDocs_ds.executeQuery();
throw error('@XYZ261');
}
 }
}

The select is selecting all rows (like ignoring 
the where clause).
So, for a while I am doing a extra conditional
using variables (in order to avoid loop), but,
anyway, the table is read complete.
Any ideas?.




[development-axapta] Conditional value field

2008-05-29 Thread jquinteroz
Hi!:

I have the following issue:

I added a field in a table.
In the corresponding form,
I need to do the following:

If the new field has value,
I need to display this value,
if not, I want to display 
the value of other field.

I suppose that I need to create 
a display method. I made it
but it seems like the method is not
triggered (I activated the debugger).
I change the field to autodeclaration Yes.

Do I need to change executeQuery instead of?.




[development-axapta] Physical Inventory by item group vs LedgerTransaction List

2008-05-21 Thread jquinteroz
Hi!:

Our Accounting department has an issue 
between two reports (Physical Inventory
by item group and Ledger Transaction list).
The difference is 14.651 that GL report
don't have.

How I can get the detail in order to
compare both reports?.

We are using FIFO cost method.




[development-axapta] Which report to compare inventory cost?

2008-05-19 Thread jquinteroz
Hi:

Which report we need to use
to compare accounting inventory cost
(in general ledger) vs inventory module
in a determinated period?.
I am asking for inventory module.
We are using FIFO cost.




[development-axapta] Some example or manual about TxtDemand in Axapta.

2008-05-06 Thread jquinteroz
Hi!:

Does somebody has a manual or example
about TxtDemand in Axapta?.

Thanks in advance.




[development-axapta] Importing CSV file to SalesLine

2008-05-03 Thread jquinteroz
Hi!:

We need to import a cvs file with order details.
Using Import option from Axapta, the sales line
imported does not have price.

What I need to do in order that the order line,
like manual registration, get in automatic way
the related unit price?.

The record has the following:

-Sales Id
-Item Id
-Qty Ordered
-Reservation (manual)
-Currency code
-Sales Unit (EA)
-Invent Dim Id

 



[development-axapta] Consumption account error in credit note on Purchase Order

2008-04-30 Thread jquinteroz
Hi!:

When we want to post a credit note in purchase order,
we receive a message that Customer Dim must
be specified for account consumption account.

How I can solve that?.
 



[development-axapta] Graphic using X++

2008-04-08 Thread jquinteroz
Hello to everybody:

Somebody has an example creating a graphic
using X++ with COM technnology?.

I meed to create one in Excel
and aonther one in Word.

Regards.




[development-axapta] Re: Printer problem

2008-04-01 Thread jquinteroz
Hi!:
I had the same issue.
Try going to AOT, report, design, standard, right click,
printer setup and check this setup versus the other computer.

Regards.

--- In development-axapta@yahoogroups.com, V G [EMAIL PROTECTED] 
wrote:

 Hi
 
 We are having problem with the printer settings.
 When I print from two different computer selecting a same specific 
printer I
 see different results.
 Appreciate any help.
 
 Thanks
 VG
 
 
 [Non-text portions of this message have been removed]





[development-axapta] Fiiling a grid

2008-03-19 Thread jquinteroz
Hi!:

I need to fill a grid in Axapta.
I got some examples but these examples are
using temporary tables for each grid filled.

Example:

In a form, exists always a classDeclaration method
and a initTmp-TableName where the temporary table is filled.

Does exists a way to fill a simple grid without use temporary
tables?.

Regards.




[development-axapta] Where a form is used?

2008-03-13 Thread jquinteroz
Hi!:

I want to know where a form is used
(like crossreference) but I noted
that it works only with tables
and classes.

I am in Axapta 3.0.

Regards.




[development-axapta] RemaintAmountCurr

2008-03-11 Thread jquinteroz
Hi!:

Somebody (I don't know how) put an invoice
with amount balance in zero (field
RemainAmountCurr in CustTrans table).
It does not has credit or payment related.

The table is CustTrans.

In CustTransOpen the invoice does not exists.
In custInvoiceJour exists without problem.

How I can fix that?.

Regards.



[development-axapta] Re: Persistent data

2008-03-06 Thread jquinteroz
Hi!, thanks.

Does it works for many data ocurrences?.

--- In development-axapta@yahoogroups.com, [EMAIL PROTECTED];=9A?= [EMAIL 
PROTECTED] 
wrote:

 Hi
 I would use Application class - 
 
 Declare a variable in class declaration
 Mak an setting/getting method like
 
 tempTable tempTableSetGetMethod(tempTable _tempTable = tempTable)
 {
 ;
 tempTableVariable = _tempTable;
 return tempTableVariable;
 }
 
 ang call it from any place in axapta - appl.tempTableSetGetMethod;
 
 
 best regards
 Ingus Ziedinsh
 
 
 --- In development-axapta@yahoogroups.com, 
 jquinteroz jquinteroz@ wrote:
 
  Hi!:
  
  I need to share between many differents classes
  a temporary data (it only must exist in the session time).
  I created a temporal table but this data seems to be
  seen only by the application that instance it first.
  For a while, I am using a normal table like temporal
  data repository, but, I need to use delete to
  eliminate the data.
  
  Does exists a better way to do that?.
 





[development-axapta] Persistent data

2008-03-05 Thread jquinteroz
Hi!:

I need to share between many differents classes
a temporary data (it only must exist in the session time).
I created a temporal table but this data seems to be
seen only by the application that instance it first.
For a while, I am using a normal table like temporal
data repository, but, I need to use delete to
eliminate the data.

Does exists a better way to do that?.




[development-axapta] Label issue

2008-02-27 Thread jquinteroz
Hi!:

I have an issue with labels.
I need to update a ald file (saved in Appl folder)
in order to uopdate labels in CUS environment.
I replace the corresponding ald file but
Axapta don't see the news labels.
How I can fix that?.
Do I need to create manually each new label 
directly in Axapta?.

Regards.
Any idea will be appreciated.




[development-axapta] Deleting a label

2008-02-12 Thread jquinteroz
Hi to everybody:

I have the next issue:

I have a label thta was written in lowercase (we use uppercase).
I found the label in the find label form.
I try to delete it.
In the form appears like it were deleted.
But, when I sign off and sign on again in Axapta,
the label remains (still exists).

I am in Axapta V3 SP5.
Do I have another way to delete the label?.

Regards.




[development-axapta] Who locks the table?

2008-01-23 Thread jquinteroz
Hi:

We recently had had some issues with record blocking (lock).
We can see the SPID of locked tables...but how we can
know which user is doing that (locking the table).

Regards.




[development-axapta] Translate from Transac SQL to select in X++

2008-01-23 Thread jquinteroz
Hi!:

I have the following SQL statement:

select f.itemRelation, f.inventDimId, avg(f.Amount) from
(select itemRelation, inventDimId, accountRelation, max(toDate)as 
maxdate from PriceDiscTable
group by itemRelation, inventDimid, accountRelation)
as x
inner join PriceDiscTable as f
on f.itemRelation = x.itemRelation
and f.inventDimid = x.inventDimId
and f.accountRelation = x.accountRelation
and f.toDate = x.maxdate
group by f.itemRelation, f.inventDimId
order by f.itemRelation

How I can translate this code to X++?.

Regards.




[development-axapta] Is possible? print a box in the whole page

2008-01-16 Thread jquinteroz
Hi!:

I have an issue.
I need to print a box in the border of 
the whole page in SalesInvoice report
before everything be printed (I suppose
that I need to use a Shape control
in order to draw a big box).

„¡„Ÿ„Ÿ„Ÿ„Ÿ„¢
„¤„Ÿ„Ÿ„Ÿ„Ÿ„£


How I can to do that if the pager header,
page sections, etc. have it's own 
specific height?.

Regards.




[development-axapta] Logo in SalesInvoice

2008-01-08 Thread jquinteroz
Hi!:

I need to insert a logo in SalesInvoice.
Do I need just insert the bmp file in 
PageHeader:Logo or PageHeader:Invoice
section?.

Do I need to make some code for that?.

Regards.





[development-axapta] LedgerTrans and accoutNum

2007-04-11 Thread jquinteroz
Hi!:
I have a question.
In which method accountNum from LedgerTrans is created?.
We added a new field in InventPostingit works 
fine for packing slip and packing slip offset, but
in consumption Axapta don't see the new field...
This new field we added in the key of InventPosting
table. We changed find, account, accountnum and accountitem
methods.
The ledger account found is the first without the new field
value.




[development-axapta] Re: Current Userid

2007-03-12 Thread jquinteroz
--- In development-axapta@yahoogroups.com, febinpc [EMAIL PROTECTED] 
wrote:

 Hi friends
  I'm working on AX 4.0, I want catch the Current Userid of 
application,
  or in simple language we can say ,I want to print the Current user ID
  Can anybody help me to solve it...
  Reagrds
 Febin Chiramel

Hi!:
I hope that this code solve your issue:
display str 10 user()
{
return curuserid();
}



[development-axapta] Duplication of serial number in SalesPickingListJournal

2007-01-23 Thread jquinteroz
Hi!:

Thanks to everybody that answer my previous question.
I have the following issue in a native Axapta report.
I made a configuration in Accounts Receivable,
Setup, Form setup and I chose print serial number.
When I print the picking list, the report prints
the serial number twice!.
Why?.
It is a native error from Axapta?.
The name of the report is SalesPickingListJournal.

Regards.




[development-axapta] Debugger error

2007-01-22 Thread jquinteroz
Hi!:
Normally, I work in 2tier.
I have the following issue in 3-tier
when I trie to use the debugger, Axapta 
sends me the next message:
X++ debugging is not enabled on Microsoft
Axapta Object Server, so it is only possible
to debug the X++ code that is running on the
client..
I am in Axapta 3, service pack 5.