How to display scope plot in Labview GUI?
I am trying to figure out how to show TDS8000 scope output plot in LV GUI(?)
This maybe a two fold question.
1. I suppose it may be necessary to adjust the scope scale with appropriate level so that the plot will show enough details of information. (e.g., finding Max and Min points)
2. how to display scope plot in LV GUI?
It would be a great help if anyone can share an example VI.
Thanks,
Hi jjlee,
It shouldn't be that difficult of a task. Most instrument drivers have
a simple initialize VI, and then some type of waveform measurement VI.
You would connect these two VIs and then take the output from the
waveform measurement (may be waveform acquire or something like that)
to a graph or chart (depending on if you're outside of inside of a
loop). That should be all you need to do for the simplest form of this
application. You would, of course, want to handle errors and close the
connection to the device when you're done collecting the data.
Hope this is of some help,
Regards,
Matt S.
LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
Similar Messages
-
Re: how to make bode plots in Labview 7.1 without using Control Toolbox
I am using Labview 10. I have connected a signal generator, a LP RC filter and an oscilloscope. I am using Labview in order to control the generator (sine with frequency sweep) and acquire the signal from the scope. I want to plot the Bode diagram without using the transfer function, from the amplitude of the sine signal and the frequency.
Thank you very much.
Best Regards.Hi pflo,
Are you using the CD Bode Plot VI or the SI Bode Plot VI? For the CD plot you must use a transfer function. Below, please find a link to an example on how to create a Bode plot without using the toolkit.
https://decibel.ni.com/content/docs/DOC-14762
Regards,
Kira T -
How to display a bmp in labview?
Hi, all
I want to display bmp in labview. I use function: draw image from File in OpenG library.
But i report error because this is Unsupported image depth. My bmp is 16 bit depth.
Should i conver it to other supported bit depth? there are so many files. Anyone can tell
me how to resolve this problem? Thanks very much.
attached my bmp file.
br
Attachments:
bmp.zip 8 KBFor vision you will need a seperate license.
Here's a VI that will read 16 bit images. However the colors for 16 bit color are ambigious. So you will need to tinker with the colors.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
ReadMain.vi 22 KB -
How to display a calendar on an GUI screen
Hi,
I need to dispaly a calendar on GUI screen, for instance if you go to www.hotwire.com, you can see a "Depart Date" field next to this filed there is a small box, click on that you will get calendar. In my screen I had a start date field I need to get the same on my screen too.
Could anybody had script(Javascript) to display a calendar like that. Please forward to me if anybody had.
Thanks to All.
ArtI use JCalendar for my applications. It's easy to implement and it looks great.
http://www.toedter.com/en/jcalendar/ -
How to make bode plots in Labview 7.1 without using Control Toolbox
I'm trying to make a bode plots from transfer function using Labview 7.1. My installed labview not contains any toolbox, so I have to create the block diagram of bode plots my self. I have a problem when creating the phase bode plots for polinomial with conjugate roots pairs. Suppose the polinomial is ax^2+bx+c, with a,b,c is the polinomial coefficients. If b coefficients is negatif, i have no problem, because the phase is start at 0, and the final value is 180. But if the b coefficient is positive, the phase plots starts at -180 and it's final value is 0. So, if there is any one who can helps me to give any solution, i'll really appreciate that. Or if there is any of you who had made the program to create the bode plots from a transfer function, i hope you can share the code with me. Thank you.
Hey pflo,
Are you using LabVIEW 7.1? Can you explain the problem that you are having with the using the Bode Plot VI? Below please find links to some documentation on the Control Design Toolkit. With further information on your problem I will be able to better assist you with the toolkit.
http://zone.ni.com/devzone/cda/tut/p/id/3560
http://zone.ni.com/reference/en-XX/help/372458B-01/lvsysid/bode_plot/
Regards,
Kira T -
How to display streaming video in a GUI window
Hello,
I was wondering what the process would be to stream video from a webcam or other similar type device into a Java GUI built in Netbeans. I have had success with this using Matlab and its built in mex compiler but need greater functionality than a Matlab GUI provides so I would like to move this over to Java. I have limited Java experience and realize this may take time, but would like to know what steps are needed.
Thank you
Davedreed29 wrote:
..I was wondering what the process would be to stream video from a webcam or other similar type device into a Java GUI.. Search on JMF.
..built in Netbeans. ..As a general rule of thumb, if someone feels the need to name their IDE when asking a question, it is a good sign they are better off avoiding an IDE at this stage of their learning. -
Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
I have attached the VI.
Thanks for the help
Attachments:
new_control_and_acquisition_program.vi 946 KBTake a look at this document that discusses how to monitor IMAQ memory usage:
http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
Hope this helps -
Julie -
Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
I have attached the VI.
Thanks for the help
Attachments:
new_control_and_acquisition_program.vi 946 KBgot these vi's off ni site a while ago - see if they help
Attachments:
Memory_Monitor.zip 132 KB -
How to display multiple tables from database using netbeans swing gui
plz reply asap on how to display multiple tables from database using netbeans swing gui into the same project
Layered Pane with JTables or you can easily to it with a little scripting and HTML.
plzzzzzzzzzzzzzzzzz, do not use SMS speak when posting. -
How to display different fonts in same indicator in labVIEW
hi
i want to know how to display different fonts in same string indicator at run time in labVIEW 8.2
Regards
Abhishek VermaHi ABHI VERMA,
see this http://digital.ni.com/public.nsf/allkb/6BD344ACA4DEE20A8625692700737E16
Mike -
How to Send Multiple Plot XY Graph from LabVIEW to Microsoft Excel
The link below describes exactly what I would like to do, however the link to the solution/work around does not work.
Has anyone got an alternative solution?
http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3EPlease check the link again as it seems to be working fine now.
How to Send Multiple Plot XY Graphs from LabVIEW to Microsoft Excel:
http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E
The standard Excel Insert Graph.vi cannot insert multiple XY Graphs to Microsoft Excel, so you will need to use the Report Generation Toolkit for Microsoft Office. You will find a link to an example program at the bottom of the page. I have also attached it below.
Attachments:
example.zip 35 KB -
please send me ready VIs doing that
Please post more information on what you are trying to do, and which software you have.
Are you using any Image Acquisition (IMAQ) software?
Which toolkit do you have?
Are you trying to display animated .jpeg or .gif images in LabVIEW front panel?
Animating LabVIEW Controls
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/6a44b4dccc2f435d86256afe0070265c?OpenDocument
Are you trying to display live images of LabVIEW front panels in a web browser?
Publishing Front Panels to the Web
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/aad6b634e63adabe86256921004c7edd?OpenDocument
Are you trying to display live web page images in LabVIEW front panel?
Building a Simple Web Browser Using ActiveX
http://zone.ni
.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/a17ad4e3a1eafe7086256775007827b6?OpenDocument
Please give more information so we can better assist you.
Zvezdana S.
National Instruments -
How to display PSA screen capture on Front Panel
Any one know how to display screen capture of PSA series specturm analyzer on front panel. I can save the JPEG file in the C drive, but I can't display on the front pannel. Please see my labview code.
Solved!
Go to Solution.
Attachments:
Capture screen E4446A.vi 21 KB
reading and writing binary number.vi 22 KB
yumg.jpg 20 KBDo you actually need to save the front panel image? Or do you want to save a graph of the signal (spectrum) that you acquired? If the latter will do the trick, you can simply read the waveform over GPIB (or whichever means you control the analyzer) into an array that is plotted to a waveform graph in LabVIEW. You then save the image of the waveform graph as an image.
Since you have all the data, you can even save the data which can be viewed later (and not only by LabVIEW). -
Please Help::How to display a Map with LIsts as Keys and Values using JSTL
Hi,
I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
OrderDetails.java
package orderitems;
import java.sql.*;
import java.util.*;
public class OrderDetails {
private LineOder lineOrder;
private Map lineItems;
//returns an item number, key_item, from its unique keys
public int getItemNumber(int key_item, String key_year,
String key_office,String key_client,String key_company){
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
int itmNum = 0;
* key_item a unique number for an item.
* key_year,key_office,key_client,key_company unique keys
* for each order where this key_item is taken
* from.
String select = "SELECT key_item FROM "+
Constants.WEB_TABLE +" WHERE key_item = " + key_item +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
if(rst.next()){
itmNum = Integer.parseInt(rst.getString("key_item"));
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return itmNum;
//get a list of item number(item codes)
public List getAllItemNumbers(String key_year,
String key_office,String key_client,String key_company){
List itemNumbers = new ArrayList();
LineItem itemNumber = null;
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
" WHERE key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company + "'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
itemNumber = new LineItem();
itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
itemNumbers.add(itemNumber);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return itemNumbers;
//get a list of tax codes
public List getAllTaxCodes(int key_item, String key_year,
String key_office,String key_client,String key_company){
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
ItemTax taxCode;
List taxCodes = new ArrayList();
int itemNum = getItemNumber(key_item, key_year,
key_office,key_client,key_company);
String select = "SELECT key_tax_code FROM "+
Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
taxCode = new ItemTax();
taxCode.setKey_tax_code(rst.getString("key_tax_code"));
taxCodes.add(taxCode);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return taxCodes;
/////This methode returns a Map which am trying to display in JSP
//use tax code to get tax details
public Map getItemTaxDetails(String key_year,String key_office,
String key_client,String key_company,int key_item){
ItemTax taxDetail = null;
List taxDetails = new ArrayList();
List itemTaxCodes = new ArrayList();
Map itemTaxDetails = new HashMap();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
//get a list of all tax codes of an item with a
//given item number
itemTaxCodes = getAllTaxCodes(key_item,key_year,
key_office,key_client,key_company);
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
String taxCode = itemTaxCode.getKey_tax_code();
String select = "SELECT tax_type,tax_value," +
"tax_limit_val FROM "+ Constants.WEB_TABLE +
" WHERE key_item = "+ key_item +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'" +
" AND key_tax_code = '" + taxCode + "'";
rst = stat.executeQuery(select);
while(rst.next()){
taxDetail = new ItemTax();
//records to be displayed only
taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
taxDetail.setTax_value(rst.getString("tax_value"));
taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
//////other details records ommited//////////////////////////
taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
* A HashMap which has all taxCodes of an item as its keys
* and an ArrayList of taxdetails as its values.
* I return this for display in a JSP.
itemTaxDetails.put(taxCode,taxDetails);
System.out.println();
System.out.println("*********CONSOLE OUTPUT*************");//display on console
Set set = itemTaxDetails.keySet();
Iterator iter = set.iterator();
System.out.println("Key\t\tValue\r\n");
while (iter.hasNext()) {
Object taxCode=iter.next();
Object details=itemTaxDetails.get(taxCode);
System.out.println(taxCode +"\t" + details);
System.out.println("************************************");
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return itemTaxDetails;
//details of an item with all its taxes
public List getAllItemDetails(String key_year,
String key_office,String key_client,String key_company){
List lineItems = new ArrayList();
List itemNumbers = new ArrayList();
Map taxDetails = new HashMap();
LineItem item = null;
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
//A list of all item numbers in the declaration
itemNumbers = getAllItemNumbers(key_year,
key_office,key_client,key_company);
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
LineItem itemNum = (LineItem)itemIter.next();
int itemNumber = itemNum.getKey_item();
String select = "SELECT item_description,item_mass," +
"item_cost" +
" FROM " + Constants.WEB_TABLE +
" WHERE key_year = '"+key_year+"'" +
" AND key_office = '"+key_office+ "'"+
" AND key_client = '"+key_client+ "'"+
" AND key_company = '"+key_company+ "'"+
" AND key_item = " + itemNumber;
rst = stat.executeQuery(select);
while(rst.next()){
item = new LineItem();
item.setItem_description(rst.getString("item_description"));
item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
//////other details records ommited//////////////////////////
/* A HashMap of all itemTaxeCodes as its keys and an
* ArrayList of itemTaxedetails as its values
taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
item.getKey_client(),item.getKey_company(),item.getKey_item());
//item tax details
item.setItmTaxes(taxDetails);
//list of items with tax details
lineItems.add(item);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return lineItems;
public Set getOrders(String key_year,String key_office,
String key_client,String key_company){
List lineItems = new ArrayList();
Set lineOrders = new HashSet();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
LineOder lineOrder = null;
String select = "SELECT * FROM " + Constants.WEB_TABLE +
" WHERE key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company + "'";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
lineOrder = new LineOder();
lineOrder.setKey_year(rst.getString("key_year"));
lineOrder.setKey_office(rst.getString("key_office"));
lineOrder.setKey_client(rst.getString("key_client"));
lineOrder.setKey_company(rst.getString("key_company"));
////list of items with all their details
lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
lineOrder.getKey_client(),lineOrder.getKey_company());
//setting item details
lineOrder.setItems(lineItems);
//a list of order with all details
lineOrders.add(lineOrder);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return lineOrders;
Controller.java
package orderitems;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Controller extends HttpServlet {
private Map taxDetails = new HashMap();
private OrderDetails orderDetails = null;
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)throws
ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
String key_year = "2007";
String key_office = "VZX00";
String key_company = "DG20";
String key_client = "ZI001";
int key_item = 1;
String nextView = "/taxdetails_list.jsp";
orderDetails = new OrderDetails();
taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
key_company,key_client,key_item);
//Store the collection objects into HTTP Request
request.setAttribute("taxDetails", taxDetails);
RequestDispatcher reqstDisp =
getServletContext().getRequestDispatcher(nextView);
reqstDisp.forward(request,response);
protected void doGet(HttpServletRequest request,
HttpServletResponse response)throws
ServletException, IOException {
processRequest(request, response);
protected void doPost(HttpServletRequest request,
HttpServletResponse response)throws
ServletException, IOException {
processRequest(request, response);
taxdetails_list.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Simple Tax Detail Diaplay ::</title>
<link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
</head>
<body>
<jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
<table>
<c:forEach items="${taxDetails}" var="hMap">
<tr>
<td><c:out value="${hMap.key}" /></td>
<!--td><%--c:out value="${hMap.value}" /--%></td-->
</tr>
</c:forEach>
</table>
</body>
</html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
both in my JSP and on the console:
*******************************CONSOLE OUTPUT****************************
Key Value
ICD [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
Edited by: aiEx on Oct 8, 2007 6:54 AMhi evnafets,
yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
public List getItemTaxDetails(String key_year,String key_office,
String key_client,String key_company,int key_item){
ItemTax taxDetail = null;
List taxDetails = new ArrayList();
List itemTaxCodes = new ArrayList();
Map itemTaxDetails = new HashMap();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
//get a list of all tax codes of an item with a
//given item number
itemTaxCodes = getAllTaxCodes(key_item,key_year,
key_office,key_client,key_company);
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.WEB_JNDI);
stat = conn.createStatement();
for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
String taxCode = itemTaxCode.getKey_tax_code();
String select = "SELECT tax_type,tax_value," +
"tax_limit_val FROM "+ Constants.WEB_TABLE +
" WHERE key_item = "+ key_item +
" AND key_year = '" + key_year + "'" +
" AND key_office = '" + key_office + "'" +
" AND key_client = '" + key_client + "'" +
" AND key_company = '" + key_company +"'" +
" AND key_tax_code = '" + taxCode + "'";
rst = stat.executeQuery(select);
while(rst.next()){
taxDetail = new ItemTax();
//records to be displayed only
taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
taxDetail.setTax_value(rst.getString("tax_value"));
taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
//////other details records ommited//////////////////////////
taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
* A HashMap which has all taxCodes of an item as its keys
* and an ArrayList of taxdetails as its values.
* I return this for display in a JSP.
itemTaxDetails.put(taxCode,taxDetails);
} catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
//return itemTaxDetails;
return taxDetails;
}And my JSP
taxdetails_list.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
</head>
<body>
<table>
<c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
<c:choose>
<c:when test="${rowCounter.count % 2 == 0}">
<c:set var="rowStyle" scope="page" value="odd" />
</c:when>
<c:otherwise>
<c:set var="rowStyle" scope="page" value="even" />
</c:otherwise>
</c:choose>
<tr class="${rowStyle}">
<td>${curRecord.key_item}</td>
<td>${curRecord.tax_value}</td>
<td>${curRecord.tax_limit_val}</td>
</tr>
</c:forEach>
</table>
</body>
</html>I can't see where am going wrong even with your advice.Please help.
Thnx. -
How to display no data found in RTF template ? XML Publisher
Hi
I have xml file, how to display no data found in RTF template ? XML Publisher ?
This is the XML File
<?xml version="1.0" encoding="UTF-8"?>
<INVALIDSERIALPRODUCT>
<P_ORG_CODE></P_ORG_CODE><P_DATE_RANGE_FROM></P_DATE_RANGE_FROM><P_DATE_RANGE_TO></P_DATE_RANGE_TO><P_ITEM_NUMBER>VIR</P_ITEM_NUMBER><P_LOT_NUMBER></P_LOT_NUMBER><P_RMA_NUMBER_FROM></P_RMA_NUMBER_FROM><P_RMA_NUMBER_TO></P_RMA_NUMBER_TO><P_CUSTOMER_NAME></P_CUSTOMER_NAME><P_EMAIL></P_EMAIL>
<G_SNQ>
<USER_NAME>NSAWHNEY</USER_NAME>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:52:23.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000016</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:53:06.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>011000000011</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:09:16.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number does not exist in Axway Track-n-Trace</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000021</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:11:09.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:46:04.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T07:08:21.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>00000000004 </SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T07:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Unknow Error </REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000011</SERIAL_NUMBER>
<RMA_NUMBER>8200000101</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T19:32:00.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000107</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-14T02:49:40.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000092</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-14T07:52:22.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000031</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T02:24:27.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000034</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T02:30:28.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Catchall fault scope has been executed</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000010</SERIAL_NUMBER>
<RMA_NUMBER>8200000114</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T03:36:18.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000158</SERIAL_NUMBER>
<RMA_NUMBER>8200000114</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T04:19:48.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
</G_SNQ>
</INVALIDSERIALPRODUCT>
thanks
nksThis is the General XML forum.
The homepage description says :
Discussion of the general XML language, standards (XSLT, XQuery, XMLSchema, etc.) and application management issues, suggestions and tips.
The BI Publisher forum is here :BI Publisher
So please mark this post as answered and ask again over there.
Maybe you are looking for
-
How do I remove song files from my iTunes Music Folder that are deleted?
Hi, When I deleted unwanted songs from my iTunes Library I selected the option to Keep Files instead of Moving Song to the Recycle Bin. As a result I've now got a load of unwanted music files clogging up my music folders. So how can I identify music
-
ITunes ranodmly loses the location info for my songs. How can I stop this from happening? How can I get all of my song locations linked back to iTunes without individually pointing to the location of each one?
-
Starting the 10G server from the command line
How do I start the 10G APP SERVER FROM THE COMMAND LINE?
-
Release procedure with out classification
HI, AJIT SINGH HERE, after making proper settings in the 'release procedure with out classification', when i try to create a puchase requisation by ME51N to test the working of release procedure ,i'm not getting check boxes of approval levels. please
-
Making field mandatory dynamically
HI, Can anybody send sample code for following logic? i am having three fields as select options. consider BSART BUKRS EBELN In selection screen if BUKRS is initial, I want to change EBELN as mandatory. else if BUKRS is not initial, EBELN is not man