QR Codes in Documaker
Anyone know if Documaker supports producing QR barcodes? You know, those barcodes that smartphones can read to link directly to a website (http://en.wikipedia.org/wiki/QR_Code). Let me know if anyone is aware of Documaker supporting this. We're running Version 11.4.
Hi Aaron,
QR Code support is on the roadmap for Documaker, hopefully either in the 12.1 or 12.2 version. Personally I'll be excited to see them put to use - it's fantastic tech.
-Andy
Similar Messages
-
Is it posibble to code values like *000.01* into Barcode in Documaker 11.4
I am looking for the feasiblity to encode values like '*000.01*' into Barcode in Documaker 11.4
When i tried the same i got a warning message (6657) stating Invalid Barcode.
But my Barcode reader is expecting a value as mentioned above.
Edited by: Barath88 on Mar 21, 2013 12:12 AMBanner Dal:
BeginSub PreBatch
#tran = 0
rname = Trim(RecipName())
EndSub
BeginSub PreTrans
#tran += 1
#Pagecnt = TOTALSHEETS(rname)
#pageno = 0
BatchRecip=RecipName()
#Formcnt=0
Group = GroupName(,"*")
Form = FormName(, , Group)
while(Form != "")
Nextform = FormName(#Formcnt,Form,Group)
if (Nextform = "")
Group = GroupName(1,Group)
if (Group = "") then
break
end
Form = FormName(,"*",Group)
if (Form = "") then
break
end
#Formcnt = 0
continue
end
#Formcnt += 1
#FormPgNum=1
#AddImgnameCntr=1
Imgname = PAGEIMAGE(#FormPgNum,BatchRecip,Nextform)
while(Imgname != "")
#pageno += 1
tran = Format(#tran,'n','9999')
Pagecnt = Format(#Pagecnt,'n','99')
pageno = Format(#pageno,'n','99')
If (#Pagecnt = #pageno)
#cnt = 1
else
#cnt = 0
end
Barcod2 = "0000" & "." & tran & "." & Pagecnt & "." & pageno & "." & "00" & "." & #cnt
#rcSetFld=SetFld(Barcod2,"NYFTZ","NYFTZAA\" & #AddImgnameCntr,Nextform)
#rcSetFl1=SetFld(Barcod3,"NYFTY","NYFTZAA\" & #AddImgnameCntr,Nextform)
#AddImgnameCntr += 1
#FormPgNum += 1
Imgname = PAGEIMAGE(#FormPgNum,BatchRecip,Nextform)
wend
wend
EndSub
Image Addition DAL:
#pageno = 1
#Pagecnt = TOTALSHEETS()
if (#Pagecnt > 0)
while(1)
iName=PageImage(#pageno)
If (iName = "")
break
end
qName = "NYFTZAA"
AddImage(qName,iName,,"*",1)
qName = qName & "\" & #pageno
#pos.top=9700
#pos.left=18400
SetImagePos("#pos",qName,,"*");
SetFld(0,"NYFTZ",qName,,"*");
SetFld(0,"NYFTY",qName,,"*");
#pageno += 1
wend;
end -
Looking to move the maintenance of our IDS instances which drive Documaker MRLs from the Unix command line to within a container ( Websphere ). Using the IDS Java client with JMS is pretty easy. I cannot see how I would be able to get an IDS server running within Websphere.
IDS is not designed to run in WebSphere or any other J2EE container. It is a standalone Java application that uses native code, allows to run custom code, reads and writes files on disk, starts other processes, etc. and as such is not exactly suitable to run in J2EE. Most of such actions are not enabled (at least by default) in J2EE due to security concerns. You could run it as a service on Windows or setup to start automatically on Unix.
What exactly do you want to achieve by it being in J2EE container? Perhaps there are other ways to do the same thing? -
Error while configuring oracle documaker connector.
We have configured the setting in as per the oracle documaker connector installation document.
the following actions can be performed after the configuration.
1. GENTNW32 is working fine.
2. PDF is generating.
But we are getting the following error while running the GENDAW32.
GenData
Transaction Error Report - System timestamp: Fri Mar 09 19:29:45 2012
DM17115: Warning : The DownLoadFAP option is set to Yes, this option should be set to No for optimal performance. Check the RunMode control group, DownLoadFAP option.
DM20401: Warning In RULNoGenTrnTransactionProc(): RunDate provided <01-OCT-2008 04:12:5820120309> is not a valid date in YYYYMMDD format. RunDate will be set to current date <20120309>.
FormMaker Data Generation (Base)
Company Name (after ini conversion): abcd-NOT FOUND
Line of Business (after ini conversion): asd-NOT FOUND
DM1002: Warning: BATCHINGBYRECIPINI
Cannot locate INI group <BatchingByRecip> with option <DefaultBatch>.
DM12041: Error : FAP library error: Transaction:<NB>, area:<..\C\genbannr.c,Dec 11 2010 08:50:55,12,0,0,10703>
code1:<0>, code2:<0>
msg:<Script: DEFLIB\AOR_PRET.DAL
Line: 6 Col: 4 Err: 6 Token: #AOR_Debug Msg: Invalid or unknown symbol>.
DM12041: Error : FAP library error: Transaction:<NB>, area:<..\C\genbannr.c,Dec 11 2010 08:50:55,12,0,0,10703>
code1:<0>, code2:<0>
msg:<Script: DEFLIB\AOR_PRET.DAL
Line: 6 Col: 4 Err: 6 Token: #AOR_Debug Msg: Invalid or unknown symbol>.
==> Warning count: 3
==> Error count: 2
End of Transaction Error Report - System timestamp: Fri Mar 09 19:29:46 2012
Elapsed Time: 1 seconds
Please check the INI file configurations:
< BATCH1 >
Printer = Printer1
EnableBatchBanner = True
EnableTransBanner = TRUE
BatchBannerBeginScript = AOR_PREB
BatchBannerEndScript = AOR_POSTB
TransBannerBeginScript = AOR_PRET
TransBannerEndScript = AOR_POSTT
< BATCH6 >
Printer = Printer2
< BatchingByRecip >
Batch_Recip_Def = true;"BATCH2";Office
Batch_Recip_Def = true;"BATCH1";Client
Batch_Recip_Def = TRUE;"BATCH6";FILE
< Environment >
DO_LOGON = Yes
FSISYSINI = fsisys.ini
< Key1Table >
DOCCDEMO = Key1
< Key2Table >
LIFE = Key2
< PRINT_BATCHES >
BATCH1 = DATA\BRDPDF.BCH
BATCH6 = DATA\BSTPDF.BCH
BATCH2 = DATA\file.bch
< Printer >
EnableBatchBanner = YES
EnableTransBanner = Yes
PrtType = PDF
< Printer1 >
Port = C:\FAP\dll\testwork\DATA\BRDPDF.PDF
EnableBatchBanner = True
EnableTransBanner = True
AORDebug = No
AORExt = .pdf
AORFilesPerBatch = 1000
AORPath = c:\AOR\
; Enable a DAL library of scripts to be pre-loaded
PrtType = PDF
< Printer2 >
Port = C:\FAP\dll\testwork\DATA\BSTPDF.PDF
PrtType = PDF
< PrinterInfo >
Printer = Printer1
Printer = Printer2
Printer = Printer6
the error occued while running the AOR_PREB file. it does not write anything on the database.
Please lhelp us to proceed further on this issue.
thanks,
IlayarajaHi Gaétan/Experts,
Thanks for the post, we are now able to successfully perform the following :-
1. Configure Documaker Connector - After changing lot of values that was provided in the Installation Guide, which seems to be outdated. For E.g. While using SQL Server Driver, the document says we need to configure the Connection as jdbc:microsoft:sqlserver, where as the code looks for the string jdbc:sqlserver.
2. Successfully insert the values to AOR table in SQL Server.
3. Sucessfully run the connector with mock-file-conn-properties, which creates the documents generated thru Oracle Documaker to the specified destination directory.
Issue:_
1. While using the UCM Destination, we are encountering an error which is pasted below.
2. In UCM we are able to create a new document and sucessfully check in using the credentials. The same used thru Connector throws an error.
3. We are using Oracle UCM - 11.1.1.5.
Error_
1828 [Thread-2] ERROR oracle.documaker.ezridc.ImportRequest processResponse - Error importing document
oracle.stellent.ridc.protocol.ServiceException: The content item was not successfully checked in. The authorization token is invalid. It has either expired or is not appropriate for the current request.
You may need to reload an earlier page in order to proceed.
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:116)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:92)
at oracle.documaker.ezridc.ImportRequest.processResponse(ImportRequest.java:200)
at oracle.documaker.ezridc.Request.executeRequest(Request.java:68)
at oracle.documaker.ecmconnector.ucmdestination.UCMDestination.importDocument(UCMDestination.java:141)
at oracle.documaker.ecmconnector.connectorapi.Destination.internalImportDocument(Destination.java:156)
at oracle.documaker.ecmconnector.connectorapi.Destination.importSingleDocument(Destination.java:138)
at oracle.documaker.ecmconnector.connectorapi.Source.importDocuments(Source.java:169)
at oracle.documaker.ecmconnector.engine.ImportChannel.run(ImportChannel.java:72)
at java.lang.Thread.run(Unknown Source)
Destination Properties_
destination.administration.name=oracle.documaker.connector.destination.UCMDestinationAdministration
destination.name=oracle.documaker.ecmconnector.ucmdestination.UCMDestination
destination.ucm.connectionstring_2000=http\://10.242.196.93/idc/idcplg
destination.ucm.connectionstring_1=http\://10.242.196.93/idc/idcplg
destination.ucm.importmethod=1
destination.ucm.column.map.dRevLabel=1
destination.ucm.password=XXXXX
destination.ucm.username=XXXXX
destination.active.wait=15
destination.ucm.column.map.EXPDATE=dInDate
destination.ucm.column.map.PFILE=primaryFile
destination.ucm.column.map.TYPE=dDocType
destination.ucm.column.map.TITLE=dDocTitle
destination.ucm.column.map.AUTHOR=dDocAuthor
destination.ucm.column.map.NAME=dDocName
Any thoughts?
Thanks
Arumugam -
Web Service call from Documaker Server?
Hi folks,
We have a process where we'd like to create a document, and import (via AddMultiPageBitmap rule) an existing external document to send with the newly-created document. This external document is stored in FileNet. We could use a Java application to read our input file, call an Webservice utility to retreive the necessary documents and put them onto the server that we'd run the Documaker engines (GenData/GenPrint) on, where they could then find and import them from. However, rather than develope a new java application to do that, we're wondering whether we can call this webservice utility from within Documaker to retreive the documents from FileNet, and either do so within the AddMultiPageBitmap rule (eliminating the need to actually place the document on the server by just returning the bitstream to the Rule in lieu of telling it the file location), or whether we can at least do so prior to the AddMultiPageBitmap rule and put each document onto the server just before calling the AddMultiPageBitmap rule.
So basically, Is it possible to do a Webservice call from GenData when running in batch on Linux? We're currently running 11.5.
Thanks,
GreggGendata does support custom code, so you could, in theory, write a custom rule that calls a WEB service and writes the TIFF(any supported bitmap) to disk. After this the base Add..Bitmap rule can just pick it up and work as usual.
-
XML mapping in Documaker Studio
Hi Experts,
We are new to XML - Documaker interaction; and despite my transactions running fine; my form is not getting triggered.
Here is the input file :
<?xml version="1.0" encoding="UTF-8" ?>
- <DOCUMENT TYPE="RPWIP" VERSION="10.3">
- <DOCSET NAME="">
<FXRFILE NAME="rel102sm" />
<KEY1>01</KEY1>
<KEY2>5</KEY2>
<KEYID>0123456</KEYID>
<Rundate>20120831</Rundate>
<Trancode>NB</Trancode>
- <GROUP NAME="ANY_TESTXML">
- <FORM NAME="TESTXMF" OPTIONS="R">
<DESCRIPTION>TESTING</DESCRIPTION>
<FIELD NAME="FIELDTwo">8:30 AM</FIELD>
<FIELD NAME="FIELDThree">5:30PM</FIELD>
- <SHEET>
- <PAGE>
<SECTION NAME="TESTXM" />
</PAGE>
</SHEET>
</FORM>
</GROUP>
</DOCSET>
</DOCUMENT>
I got one Group as 'Any_TestXML' , FORM as 'TESTXMF' , Section as 'TESTXM'.
The triggering condition at FormList (Group Level) is
!/DOCUMENT/DOCSET/GROUP[@NAME='ANY_TESTXML']
and at FORM level is :
!/DOCUMENT/DOCSET/GROUP/FORM[@NAME='TESTXMF']
but my polfile and nafile are coming and only Banner page is getting printed.
This is what I get when I use the 'Test Scenario' option :
Error: Error in GENGetNextTrnSet(): TrnFileH == VMMNULLHANDLE.
Any help would be appreciated.
Thanks.
Edited by: 889054 on Aug 31, 2012 5:07 AM[Oracle Delivery Cloud|https://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=15238196] [Oracle Delivery Cloud|https://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=15238196] Your XML structure is something that should be reconsidered. You are attempting to use a XML structure that is documented in the Documaker XML Guide for the XML Import configuration of Documaker not the rules processor configuration. Your AFGJOB and INI files indicate that you are trying to use the rule processor configuration.
The XML Import style of XML requires you to use the structure where you specify the tags for specific use shown below under *****XML IMPORT EXAMPLE **** file. While this is valid XML and will work, it is probably the most restrictive XML design. The intent of the Import XML implementation is to make Documaker a dumb print engine - you tell it exactly what you want to include in the final output. The documentation clearly states the following on the chapter of the XML Guide that is labeled Importing and Exporting XML Files with Documaker Server.
+"Keep in mind that importing XML is not the same as using an XML file as your extract file. Import assumes you are using a specific file layout that describes your document in a predefined manner."+
It is the least flexible and requires the person deigning the forms to also understand the data structure, it cannot take advantage of any of the rule processing (RP) features that make the product worth the $$ that customers spend on it.
Documaker can use any well formed XML file (it can be successfully opened in a browser is the simplest test). You really should not mix and match the AFGJOB IfRecipUsed and the batching by recip rules - they are not intended to be a mix you are missing the AFGJOB rules that invoke batching by recip: ;BatchingByRecipINI;2;; and optionally ;BatchingByPageCountPerRecipINI;;;.
There are only three possibly two fields that you need to have consistent to use Documaker in the RP configuration: Key1, Key2 and KeyID. The Key1 and Key2 drive the group selection you can omit one if you only have one group - KeyID is used as the transction ID to track the transaction in the system (consider if there is an error). I would suggest that you possibly use sample MRLS that are available the Oracle Delivery Cloud (https://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=15238196) part number V33403-01 as a example the DMS1 sample is fully running and may give you some better insight into how to implement.
***** XML IMPORT FILE EXAMPLE*****
<?xml version="1.0" encoding="UTF-8"?>
<DOCUMENT TYPE="RPWIP" VERSION="10.3">
<DOCSET NAME="">
<FXRFILE NAME="rel102sm"/>
<GROUP NAME="" NAME1="DOCUCORP PACKAGE" NAME2="VERSION 103">
<FORM NAME="Tersub - Basic" OPTIONS="R">
<DESCRIPTION>Tersub - Basic Paragraph Assem</DESCRIPTION>
<FIELD NAME="FIELDTwo">8:30 AM</FIELD>
<FIELD NAME="FIELDThree">5:30PM</FIELD>
<RECIPIENT NAME="AGENT" COPYCOUNT="1" CODE="" SEQUENCE="1"/>
<RECIPIENT NAME="HOME OFFICE" COPYCOUNT="1" CODE=""
SEQUENCE="2"/>
<RECIPIENT NAME="INSURED" COPYCOUNT="1" CODE="" SEQUENCE="3"/>
</FORM>
</GROUP>
</DOCSET>
</DOCUMENT> -
Online-Printing with Documaker
Hello,
I've installed IDSServer, IDSShared and IDSClient in version 2.2 on my Windows 7 pc to play with it.
Because of that I've selected http as queuing mechanism.
Now I want to print a dummy hello world-pdf via the java messaging mechanism.
I have written a java client along the provided MsgClient-sample.
I have also found out, that I have to use the PRT request-type.
Now I get the following message:
log4j:WARN No appenders could be found for logger (http.debug).
log4j:WARN Please initialize the log4j system properly.
Message variables
IDSGUID=2D0FB991-FC80-EA7A-D1F6-F65DCF6C6C2D
IDSHOSTNAME=BSG-N0244
RESULTS=DPR0019
SERVERTIMESPENT=0.000
Rowsets
DPR0019
Row 1
CARID=
CATALOGKEY=TEST
EXTENSION=
FILE=BEBD61F6-0F9D-BFB7-99AC-A9B7B58B80D4-0-IDS-1-BL.pol
ERRORS
Row 1
CODE=DPR0019
The form I created simply consists of a static label "Hello world".
What am I doing wrong?
Regards
Florian895099 wrote:
thanks for your reply. I'm trying the SCH-request type now.
However it requires a variable named fields which filters the results as i understand its function.
Could you please give me an example how I could query all records?Sure.
You need the following attachment variables:
CONFIG=<name of the configuration which should be found in your DAP.INI>
USERID=<you should have this already>
PARTIALMATCH=Y <use this to match part of a string, example: FLO will find FLOWER and FLORIAN. Omit this value if you do not want this feature.>
FIELDS=<list of fields,comma-delimited, which you will search. These should be found in the APPIDX.DFD that is defined in your configuration.>
Example request:
CONFIG=MyConfig
USERID=DOCUMAKER
FIELDS=KEY1,KEY2,KEYID
KEY1=MyKey1
KEY2=MyKey2
KEY3=MyKeyID
REQTYPE=SCHIf you are unsure as to the fields in your appidx.dfd, or where to find the appidx.dfd, you'll need to check your INI files. The definition of the APPIDX location can be anywhere in the set of INI files used on the system, but generally it is in the FSISYS.INI. Note that if the paths are not absolute then they are relative to the execution of your system, usually the docserv or fap\mstrres\<mrl_name> directories.
DAP.INI
[Configurations]
Config=MyConfig
[Config:MyConfig]
INIFile=c:\some\path\fsiuser.ini
FSIUSER.INI
[Environment]
FSISYSINI = c:\some\path\fsisys.ini
FSISYS.INI
[ ArcRet ]
AppIdxDfd = arc\appidx.dfdHere is a sample of the appidx.dfd, which defines the record layout of the archive:
< FIELDS >
FIELDNAME = KEY1
FIELDNAME = KEY2
FIELDNAME = KEYIDIf you just want to query all records, then omit the KEYID from the FIELDS= attachment variable. I do not recommend using that for any production application however - you will always want to limit a search as best you can to prevent open-ended queries which can be detrimental to performance.
~Andy
Edited by: Andy Little on Nov 8, 2011 10:29 AM -
PDF417, 2D bar code questions
Does anyone have experience (or can anyone point me to documentation) regarding the 2D bar codes supported by Documaker? We are using 11.5, and are interested in evaluating PDF417 or DataMatrix (or others) for scanning purposes. We have implemented a PDF417 solution using section rules rather than the bar code type in found in 11.5, but I am interested in using it for something other than New York ID cards. To that end, I'm not sure the PDF417 guide that I have found in the documentation section of the support site is useful, as the data we hope to bake into a PDF417 bar code wouldn't be parts of drive names, VINs, etc., I'm hoping there is a way to create our own name-value pairs for sue with the bar code. Is this possible? I have no experience with DataMatrix, so I am curious if we can implement a similar solution using that technology as well.
Thanks!
TonyHi Tony,
You may refer to the documentation on "Using Data Matrix 2-D Bar Codes" in the studio user guide.
http://docs.oracle.com/cd/E16256_01/dmstudioguide.pdf
Thank you,
Sruthi Jayasimhan -
Print 2 Documaker Sections at the same spot
Well, I'm trying to print 2 different documaker sections in the same form and i want to do it just in the same place. The problemm is that these are dinamyc sections and I don't know how to set the sections properties in the "position" group.
How can i print these 2 sections at the same place in the formHello,
Can you please be little more clear? When you set the position for any section it means you are setting the x,y position; i.e, distance from left margin and distance from top margin. How and why do you want to place 2 different dynamic sections on the same x,y. If you would try that, they will overlap on the final output.
This is what you will have to code for "Position" property on the 2nd Section you are taking about in your question.
If you are trying to place both the sections with same distance from left margin, then use the position as: (this will place one section below the other)
Left Type: Rel+0
Top Type: Max+0 or Max+ some cms or faps.
If you are trying to place both the sections with same distance from top margin, then use the position as: (this will place one section to the side other provided each of your sections are half page width or both together does not cross a page width)
Left Type: Max+0 or Max+ some cms or faps.
Top Type: Rel+0
If your dynamic sections are conditional and only one will trigger in the form, then, try
Left Type: Rel+0
Top Type: Max+0 or Max+ some cms or faps.
Documaker will automatically push the section to avoid the spacing if the other is not triggered.
Thank you.
Edited by: Nirmal Garga on Dec 16, 2011 11:21 AM
Edited by: Nirmal Garga on Dec 16, 2011 11:24 AM -
Generate prov.xml for Creative Cloud. Return Code 27
We're trying to follow this guide (Creative Cloud Help | Using Adobe Provisioning Toolkit Enterprise Edition) to serialize a package (or something). We're stuck on generating prov.xml. My best attempt at an entry is:
C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities\APTEE>adobe_prtk.exe --tool=VolumeSerialize --generate --serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --regsuppress=ss --eulasuppress --locales=en_US --provfilepath=C:\Program Fil
es (x86)\Common Files\Adobe\OOBE\PDApp\CCP
It says half of this is optional, but I'm skeptical.
Anyway, I'm getting return code 27. This indicates that it is unable to edit the prov.xml file specified. I didn't specify a prov.xml file, I'm trying to make one. The syntax I'm using differs from what I found on the page I linked, as that was giving me syntax errors. I lifted this off someone else's code. I've tried just about every variation I can think of. Any help would be appreciated.
This is on WindowsOne of these links may help
http://helpx.adobe.com/creative-cloud/packager.html
http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent -
Code returns "null" and "0"s in main module - why?
I am coding a program that is in two modules. The main module serves it's standard function. The inventory class/module has three functions - 1) request stock input on 4 data points (1 String and 3 integers, one of which is a double) - 2) calculate the value of the inventory, and - 3) return string which reads out the 4 data points and the calculation showing the total value of the inventory. I've created the 3 functions in the inventory class/module, but obviously don't have them referring to each other correctly because when we come to the end of the program the output is null for the String and "0"s for the int/doubles. The code is below - any ideas about how to overcome the empty output? The code compiles fine and acts like it is going to work, but when it comes to the final command line it outputs
"null, which is item number 0, has 0 currently in stock at a price of 0.00 each. The total value of inventory in stock is 0.00"
Main module:
public class Main {
@SuppressWarnings("static-access")
public static void main(String[] args) {
Inventory inventory = new Inventory(); //call Inventory class
inventory.inventoryInput();
Inventory results = new Inventory();
results.inventoryResults(); //call for inventoryResults in Inventory class
}Inventory module:
import java.util.Scanner;
import static java.lang.System.out;
public class Inventory
//declare and initialize variables
int itemNumber = 0;
String productName;
int stockAmount = 0;
double productCost = 0;
double totalValue = 0;
String inventoryResults;
//initialize scanner
Scanner input = new Scanner(System.in);
public void inventoryInput ()
out.println("Please enter item number: "); //prompt for item number
itemNumber = input.nextInt();
out.println( "Enter product name/description: "); //prompt for product name
productName = input.next();
out.println("Quantity in stock: ");
stockAmount = input.nextInt(); // prompt for stock quantity
out.println("What is the product cost for each unit? ");
productCost = input.nextDouble(); // prompt for product cost
} // end inventoryInput
public double totalValue( double stockAmount, double productCost )
totalValue = stockAmount * productCost;
return totalValue; // return stock value
} // end totalValue
public void inventoryResults()
out.printf("%s, which is item number %d, has %d currently in stock at a " +
"price of %.2f each. The total value of inventory in stock is " +
"%.2f\n.", productName, itemNumber, stockAmount, productCost, totalValue);
} // end inventoryResult
}// end methodjustStartingOut wrote:
Actually my final solution was quite simple - I moved the calculation and final formated print text statements into the body of Inventory's class code. It now works. "Works" scares me a bit.
Someone cooking dinner might rummage about in the fridge and the cupboards to see what's there. Do imaginative things with what they come up with. And, with a bit of luck come up with something tasty or, at any rate edible.
A physician deciding on a medical treatment would do well to try a more cautious approach. A specific aim would be a good thing. And a calculated appreciation of the documented effects of each medicine. And how they interact.
It's up to you to determine which approach your coding should resemble. But it seems to me that your original Main class had a perfectly good reason to exist. It was a driver class whose purpose seemed to be to create and use an Inventory. (And using an Inventory is a very different thing from being an Inventory, so it made perfect sense to have two different classes.) To me it works or not, depending on whether it fufills that purpose. And what you have done is not so much solve the problem of it not working, as avoid that problem.
(If by "moved" you mean that the outputting now occurs as part of - or is called from - inventoryInput() then that is not a good thing. The input method should input: just input.)
I think that is because once the original input was loaded into the program (when I entered product number, name, price and value), the entries were dropped when the code switched to the next step. I think your intuition is entirely correct. In particular look at what your original main() method does (my comments replacing yours):
Inventory inventory = new Inventory(); // (A) Create an inventory...
inventory.inventoryInput(); // ... and put stuff into it
// (B) Create some new entirely different (and empty) inventory...
Inventory results = new Inventory();
results.inventoryResults(); // ... and print its contentsInstead of creating a second inventory, try printing the results of the first one.
Edited by: pbrockway2 on Apr 22, 2008 12:37 PM
Whoops ... just read reply 2.
It might sense, though to call totalValue() at the end your input method (because at that point the total value has changed). Or do away with that method - which you worked on getting right in your other thread ;) -
Sample source code for fields mapping in expert routine
Hi All
Iam writing the expert routine from dso to cube for example I have two fields in dso FLD1,FLD2
same fields in infocube also ,can any body provide me sample abap code to map source fields to target fields in expert routine,your help will be heighly appreciatble,it's an argent.
regards
eliazBasic would be ;
RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
Hope this helps
Derya -
My phone want let me download any apps when I put the password in it take me to billing option which tell me I have the wrong security code and that's the security code that was on the card on the account
iTunes Store: My credit card's security code or zip code does not match my bank's records
http://support.apple.com/kb/TS1646 -
I have a relatively new Macbook Pro Retina 15" and have a Western Digital 1 TB Passport. I've been using the passport for about a year now without any problems on older Macbooks in my house. I used to be able to read and write to this drive no problem. I am using the Paragon NTFS for Mac software in order to read and write to the NTFS drive. When I navigate through the drive in Finder, if I try to create a new folder, I do not have a problem. If I try to delete that folder I just created, I get this error:
The Finder can’t complete the operation because some data in “untitled folder” can’t be read or written.
(Error code -36)
The folder has nothing in it whatsoever. I just created it. But if I go to Terminal and I run
rm -rf "untitled folder"
This works fine. Why is Terminal acting different than Finder? This does not happen on my other Macbooks. Thanks in advance.Thanx for such qucik reply!!! The pages were great, it had an answer for my problem, but unfortunately it also involved me dealing with it only on the MacIntosh HD itself, not on mounted external drive I suppose... So it didn't work they say that there is an icon in the left corner indicating locked folder - I don't see any icon on it. It says you can untick the box to unlock the folder - there is no tick to be unticked. Finally, they say that if I don't have permition or rights I cannot delete it. But how do i change permittion which already says that i can read and write in it? So everything appears to be normal only I cannot delete it. there is not even any warnig telling me I don't have enough rights, it just requires the password and after me typing it in it makes the sound of scraping paper but does nothing more. I aslo had some problems with emptying Trash after being seemingly succesful with one file and had got so far to have them appear in the Trash (no clue how this one actully got there though..) I followd the advice and emptied the Trash with Terminal. The Folder is still there but it shows 0 Kb... So far so good BUT: It is still on the external drive, so I obviously only managed to copy it into the Trash!!! Phew, innit a bit too tight to poor owners, this macbook?? I want my rights back!
-
Hi, All
i have a trouble about report generation.it seems the error happened at the "write UUT report"--this step is teststand report generation'DLL.
detail:
An error occurred calling 'Save' in 'Report' of 'NI TestStand 2010 SP1 API'
Access Denied.. Error writing to file 'D:\program\seq\xxx.xml'.
The file might be open in another application. If file access is intermittently denied, you should try disabling the Microsoft FindFast utility.
error code:-17205; Access Denied.
locationtep 'Write UUT Report' of sequence 'Single Pass' in 'SequentialModel.Seq'
How to fix it?
Thanks a lot.
BRHm, it looks like the file might be open in another application. If you see that file accesss is intermittently denied, you should try disabling the Microsoft FindFast utility.
CTA, CLA, MTFBWY
Maybe you are looking for
-
Crystal Reports has stopped working with Windows 7 and demo database
I'm trying to get back up to speed on Crystal Reports after 10 years away. I'm running Crystal Reports 2008 Standard with the just-released Service Pack 3 (same symptom with SP2). So I downloaded the demo database and tried creating a new report. No
-
EBS running on Solaris 8 container (on a Solaris 10 box)
As per doc ID 567849.1, Oracle has started supporting Oracle 8 containers. The doc mostly talks about Oracle Server Enterprise edition and not about FND/AOL Has anyone every installed E-Business Suite on a Solaris 8 container and experienced any issu
-
FMJ2 - Transfer of Budget linkedto commitment
Dear All We only want to carry forward the Open P/O with their budget to next fiscal year.Then I expected that budget linked commitment must be simultaneously transferred with commitment amount when I ran FMJ2 transaction. But, while the amount of co
-
Unable to connect to the router! (wrt54g v. 2)
I just got a router from a garage sale; it was still in the box and everything. Well, I tried hooking it up to my modem and computer to get wifi, but I can't get it to work. This is the setup: modem -> router -> computer I can access the internet whe
-
I have Office 365. My free 60 minutes should be available every 17th. But they are not. How come? Solved! Go to Solution.