User Activity

  • Posted a comment on discussion Help (English) on OpenXava

    Class SalesQuote package com.osix.plx.model; import java.math.; import java.time.; //import java.rmi.; import java.util.; //import javax.ejb.; import javax.persistence.; import org.openxava.annotations.*; import com.osix.plx.calculators.*; import lombok.*; @Getter @Setter @Tab(name="SalesQuote", properties="number , salesOrderNumber,orderDate,totalAmount") @View(name="Quote", members="salesOrderNumber, ") @View(name="Detail", members="year,number, salesOrderNumber, orderDate,,purchaseOrderReference;quoteDetails;...

  • Posted a comment on discussion Help (English) on OpenXava

    We have an element collection in a SalesQuote entity and a embedddable SalesQuoteDetail. We use the following code for calculating the amount on each line of the ElementCollection. According the tect in the "Invoice" tutorial the amount should be recalculated when Discount or Quantity is changed. However, the recalcuation only works when the record is saved. Is there a solution ? (I checked ChatGPT but that did come up with a solution). @Depends("discount, quantity") public BigDecimal getAmount()...

  • Posted a comment on discussion Help (English) on OpenXava

    Xavier, I already suspected that the image could not be found. but was not able to solve this. I will test including it in the project and let you know.

  • Posted a comment on discussion Help (English) on OpenXava

    Hi Xavier, I found the cause of the problem. In the example the following fails ssaAgreement = XPersistence.getManager().find(SsaAgreement.class, ssaId); It requires that ssaId is true id of the class. In my case it isn't . The SsaAgreement class extends the Identifiable class. This means the Id is defined in the Identifable class . It is defined as "oid" (which is hidden) So the solution is to use the following: ssaAgreement = XPersistence.getManager().find(SsaAgreement.class, oId); This works and...

  • Posted a comment on discussion Help (English) on OpenXava

    Jasper Report allows to include in a report a background image. I copy the report to OX. When I run the report the background image is not shown. I attach the source of the report file as it is available in the OX project. I fully understand if you are not spending time on this Non-Ox issue. But if you have an idea it is very much appreciated.

  • Posted a comment on discussion Help (English) on OpenXava

    I want to display a logo on a report page. The report is SsaAgreement The logo is a String Logo in SsaAgreement ( @file , 32 bytes) The SsaAgreement is identified by the character field ssaId. When I run the report I get an error "nullpointer "on line 1. I suspect that this is caused by an error in line2 What am I doing wrong ? Xavier, Thanks for all your help AttachedFile img = new AttachedFile(); ** 1** img = FilePersistorFactory.getInstance().find(getSsaAgreement().getLogo()); byte[] fileImg =...

  • Posted a comment on discussion Help (English) on OpenXava

    Dear Xavier, Thanks. I changed my browser settings. But now I run into another issue that is certainly caused by myself. The openXava component Product cannot be resolved. What is wrong in my code package com.osix.invoicing.actions; import java.util.; import com.osix.invoicing.model.; import org.openxava.actions.; import org.openxava.model.; import org.openxava.util.; import org.openxava.validators.; import net.sf.jasperreports.engine.*; public class PrintProductAction extends JasperReportBaseAction...

  • Posted a comment on discussion Help (English) on OpenXava

    java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x07O0x010x000x07K0x030x03u0xe1Uh0xbc0x180xc90x06Z0x0f0xb70x110xa2!E0x11r0xc90xa2N0x110xc5z0xbe0x960xe5RUrO ]. HTTP method names must be tokens I am developing a report according to Lesson 2 of the Jasper Report Tutorial It is compiling and running without errors. However, when I say Print report the result is a page with Null in the fields. In the openxava console I get the message above. Is this a Jasper issue...

View All

Personal Data

Username:
os57742
Joined:
2020-04-06 12:52:35

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB