From XML (import) for each record automatic new page creation?
Hello,
I'm playing around with XML.
Can someone tell me where to look and help me?
I load variable data via XML.
Example content xml:
<pages>
<page>
<id>1</id>
<article>title page 1</article>
<info>Info page 1</info>
<price>price page 1</price>
</page>
<page>
<id>2</id>
<article>title page 2</article>
<info>Info page 2</info>
<price>price page 2</price>
</page>
<page>
<id>3</id>
<article>title page 3</article>
<info>Info page 3</info>
<price>price page 3</price>
</page>
</pages>
I have 1 page classified (ie 3 text boxes). The idea is that for each record in the xml (in this case 1, 2 and 3) a new page is created (Qua layout identical to the page that I had prepared, but with the corresponding data in each box)
How do I do this?
Thanks!
If you need to keep the three parts of your page in separate text frames, you are probably out of luck.
I can't tell from your question whether you know how to tag frames and import XML content into them. If you don't, the manual is fairly clear on it. However, it states more than once that "InDesign flows merged XML content into existing frames only." That means that it won't add frames or pages for you -- you can only load XML into tagged frames on the first page and will have to add extra ones by hand.
If you could rework your design so that all the elements could be accommodated in a single text frame, using paragraph styles to keep them apart, you could just import the XML and map tags to styles, then drag it into a frame on the first pages. If your article style was set to start in a new frame, everything but the first would go into overset text, which you could deal with in the usual way -- shift-click on the in port of a new frame and InDesign will add the pages you need.
Similar Messages
-
I have problem loading all items from XML with for each
Hi all,
I'm low level as3 programmer and I need help whit this code:
I have gallery XML file:
<gallery>
<item>
<id>1</id>
<strana>0</strana>
<naslov>Lokacije</naslov>
<aktuelno>1</aktuelno>
<slika>1.jpg</slika>
</item>
<item>
<id>2</id>
<strana>2</strana>
<naslov>Coaching</naslov>
<aktuelno>1</aktuelno>
<slika>2.jpg</slika>
</item>
<item>
<id>3</id>
<strana>0</strana>
<naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
<aktuelno>0</aktuelno>
<slika>3.jpg</slika>
</item>
</gallery>
And:
var loader: URLLoader = new URLLoader();
loader.load(new URLRequest("gallery.xml");
var xml = new XML(evt.target.data);
for each(var item in xml..item) {
centralniText.htmlText = item.slika;
only shows last item from XML file:
3.jpg
I want all. Please help.can adding count item in XML help somehow?
<gallery>
<item>
<id>1</id>
<strana>0</strana>
<naslov>Lokacije</naslov>
<aktuelno>1</aktuelno>
<slika>1.jpg</slika>
</item>
<item>
<id>2</id>
<strana>2</strana>
<naslov>Coaching</naslov>
<aktuelno>1</aktuelno>
<slika>2.jpg</slika>
</item>
<item>
<id>3</id>
<strana>0</strana>
<naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
<aktuelno>0</aktuelno>
<slika>3.jpg</slika>
</item>
<last>3</last>
</gallery> -
Sending emails for each record from tabular form
I currently have a requirements management tabular form that used to update or set job requirements inactive and/or covered.
We're a staffing agency and have salesmen across the country that will use this tabular form to quickly manage their requirements to mark them as covered or inactive if the position has been filled.
The multi-row update works fine since the form was built using the wizard, but I need to be able to send out an email for each record that's been marked as covered in the tabular form.
How can this be accomplished?
I'm running Oracle 12c and Apex 4.2.0 on a windows 2008 R2 server.
Thanks again.Greg,
I took a different approach from what I originally suggested. Since the tabular form is displaying only reqs that eligible to be covered, I chose to construct a process that would read the database after the reqs table was updated. The code should find recent reqs covered by the salesman and then send out an email for each covered req.
Since I cannot see the data structure of your reqs table, I guessed the data type and size for the local variables in the DECLARE section, you many need to adjust these.
Give this code a shot and let's see where we get. By the way, the naming conventions of your database are in need of naming standards.
The process needs to occur After Submit and after the Automatic Row Processing (DML) process that is updating the reqs table. Make sure that the process sequence number is greater than the Automatic Row Processing (DML) sequence number.
DECLARE
l_id NUMBER;
l_index NUMBER;
l_vc_arr2 apex_application_global.vc_arr2;
lc_message VARCHAR2 (4000);
l_pkey NUMBER;
l_date_wrote DATE;
l_sales VARCHAR2 (100);
l_client VARCHAR2 (100);
l_job VARCHAR2 (100);
l_1or2 VARCHAR2 (100);
l_rate NUMBER;
l_notes VARCHAR2 (4000);
BEGIN
FOR c1
-- Retrieve reqs primary key that have been covered
-- in the last 2 seconds by the salesman
IN (SELECT pkey
INTO l_pkey
FROM reqs
WHERE SYSDATE < (date_wrote + 1 / 46200)
AND active = 'Active'
AND reqs.sales = :p12_sales
AND covered IS NOT NULL)
-- Send an email for each req that has been covered
LOOP
SELECT c1.date_wrote,
c1.sales,
c1.client,
c1.job,
c1.notes,
c1.who,
c1.1or2,
c1.rate
INTO l_date_wrote,
l_sales,
l_client,
l_job,
l_notes,
l_who,
l_1or2,
l_rate
FROM reqs
WHERE pkey = l_pkey;
lc_message := 'Date Written :' || l_date_wrote || CHR (10);
lc_message := lc_message || 'Sales :' || l_sales || CHR (10);
lc_message := lc_message || 'Client :' || l_client || CHR (10);
lc_message := lc_message || 'Position :' || l_job || CHR (10);
lc_message := lc_message || '#1 or #2 :' || l_1or2 || CHR (10);
lc_message := lc_message || 'Rate :' || l_rate || CHR (10);
lc_message := lc_message || 'Notes :' || l_notes || CHR (10);
l_id :=
apex_mail.send (
p_to => '[email protected]',
p_from => 'DO_NOT_REPLY@REQS',
p_subj => ''
|| l_who
|| ' Has Covered '
|| l_job
|| ' at '
|| l_client
|| CHR (10),
p_body => lc_message);
COMMIT;
apex_mail.push_queue ();
END LOOP;
END;
Jeff -
Lookup Data For Each Record of Result Set
I'm trying to determine if the following task is possible in BPEL and how to implement it.
Assume I have two DB Adapters returning data from two different databases.
The first excepts no inputs returns 5 records in a collection looking somewhat like the following.
Order ID, Item ID
1, 2
2, 1
3, 1
4, 2
5, 3
The second accepts an Item ID as input and returns the description for that item.
I would like the output of the BPEL Process to look like this.
Order ID, Item ID, Item Desc
1, 2, Computer
2, 1, Desk
3, 1, Desk
4, 2, Computer
5, 3, Lamp
I'm new to BPEL and I'm assuming this will involve invoking the first db adapter link and then iterator through the result set calling the second db adapter link for each record but I'm not sure where to start. I'm hoping someone can give me a simple example that I can play with. I've looked at How to iterate through multiple records read from a file adapter? and How to pass a single element in an array to XSL from BPEL but I'm getting lost.
ThanksI just got it working in the BPEL for-each loop by creating a variable of type Order which I then assigned the results from that loop and then appended them to my output variable. I'd be interested in seeing how I could do that within a transformation if its quicker. How do I append in a transformation so that I can add the row after each loop.
Here is the BPEL so far.
I will note that I think just fetching a complete copy of both data sources and merging wouldn't be ideal as my items table could contain a million records or more and I'm only wanting to fetch the ones I'm interested in.
Thanks
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Thu Dec 19 10:16:29 CST 2013
Author: shawn.c.weeks.ctr
Type: BPEL 2.0 Process
Purpose: Synchronous BPEL Process
-->
<process name="Lookup_Orders"
targetNamespace="http://xmlns.oracle.com/Order_Lookup/Sales_System/Lookup_Orders"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:client="http://xmlns.oracle.com/Order_Lookup/Sales_System/Lookup_Orders"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/Order_Lookup/Sales_System/get_orders"
xmlns:ns2="http://www.example.org"
xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/get_orders"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/db/Order_Lookup/Sales_System/get_items"
xmlns:ns5="http://xmlns.oracle.com/pcbpel/adapter/db/top/get_items"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://xmlns.oracle.com/Order_Lookup/Sales_System/Lookup_Orders" location="Lookup_Orders.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="lookup_orders_client" partnerLinkType="client:Lookup_Orders" myRole="Lookup_OrdersProvider"/>
<partnerLink name="get_orders" partnerLinkType="ns1:get_orders_plt"
partnerRole="get_orders_role"/>
<partnerLink name="get_items" partnerLinkType="ns4:get_items_plt"
partnerRole="get_items_role"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:Lookup_OrdersRequestMessage"/>
<!-- Reference to the message that will be returned to the requester-->
<variable name="outputVariable" messageType="client:Lookup_OrdersResponseMessage"/>
<variable name="Invoke1_get_ordersSelect_InputVariable"
messageType="ns1:get_ordersSelect_inputParameters"/>
<variable name="Invoke1_get_ordersSelect_OutputVariable"
messageType="ns1:OrdersCollection_msg"/>
<variable name="Invoke2_get_itemsSelect_InputVariable"
messageType="ns4:get_itemsSelect_inputParameters"/>
<variable name="Invoke2_get_itemsSelect_OutputVariable"
messageType="ns4:ItemsCollection_msg"/>
<variable name="Output_Row" element="ns2:OrderCollection"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in Lookup_Orders.wsdl) -->
<receive name="receiveInput" partnerLink="lookup_orders_client" portType="client:Lookup_Orders" operation="process" variable="inputVariable" createInstance="yes"/>
<!-- Generate reply to synchronous request -->
<invoke name="Invoke1" bpelx:invokeAsDetail="no" partnerLink="get_orders"
portType="ns1:get_orders_ptt" operation="get_ordersSelect"
inputVariable="Invoke1_get_ordersSelect_InputVariable"
outputVariable="Invoke1_get_ordersSelect_OutputVariable"/>
<forEach parallel="no" counterName="ForEach1Counter" name="ForEach1">
<startCounterValue>1</startCounterValue>
<finalCounterValue>count($Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders)</finalCounterValue>
<scope name="Scope1">
<sequence name="Sequence1">
<assign name="Assign2">
<copy>
<from>$Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders[$ForEach1Counter]/ns3:itemId</from>
<to>$Invoke2_get_itemsSelect_InputVariable.get_itemsSelect_inputParameters/ns5:item_id</to>
</copy>
</assign>
<invoke name="Invoke2" bpelx:invokeAsDetail="no"
partnerLink="get_items" portType="ns4:get_items_ptt"
operation="get_itemsSelect"
inputVariable="Invoke2_get_itemsSelect_InputVariable"
outputVariable="Invoke2_get_itemsSelect_OutputVariable"/>
<assign name="Assign3">
<copy>
<from>$Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders[$ForEach1Counter]/ns3:orderId</from>
<to>$Output_Row/ns2:Order/ns2:Order_ID</to>
</copy>
<copy>
<from>$Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders[$ForEach1Counter]/ns3:itemId</from>
<to>$Output_Row/ns2:Order/ns2:Item_ID</to>
</copy>
<copy>
<from>$Invoke2_get_itemsSelect_OutputVariable.ItemsCollection/ns5:Items[1]/ns5:itemDesc</from>
<to>$Output_Row/ns2:Order/ns2:Item_Desc</to>
</copy>
</assign>
<assign name="Assign4">
<extensionAssignOperation>
<bpelx:append>
<bpelx:from>$Output_Row/ns2:Order</bpelx:from>
<bpelx:to>$outputVariable.payload</bpelx:to>
</bpelx:append>
</extensionAssignOperation>
</assign>
</sequence>
</scope>
</forEach>
<reply name="replyOutput" partnerLink="lookup_orders_client" portType="client:Lookup_Orders" operation="process" variable="outputVariable"/>
</sequence>
</process> -
SSRS 2008 R2 - Separate report for Each record?
Hi,
How do I create new pdf reports for each records from a table? The pdf files should be named as customerid.pdf and needs to be delivered in email or share path?
Each record has enough content for 5 page of pdf report.
How do we achieve this?
Thanks
RajYou can create a data driven subscription to loop through records in the table and create pdf based on number of customerid.
Have a look at this for DD subscriptions :
http://msdn.microsoft.com/en-us/library/ms169673.aspx
Kind Regards, Vikram Kansal Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker -
Table cntrol field to be display/Change only For each record
Hi all,
How to set a particular Field in table control either as display only or
change only for <b>each row</b> based on certain condition.I need to set this property for each record in table control not for the entire coloumn?.I know the procedure for setting up an entire coloumn in table control either as diplay or change only using <b>Loop at screen</b> statement.
Conditions:
If Material is batch managed:
itab-batch field has to be <b>Display only</b> mode.
if material is not batch managed:
itab-batch field has to be <b>change mode</b>.
<b>O/p of Table Control :</b>
Material Batch
1000 Display only
2000 Change only
8000 Change only
3500 Display only
3600 Display onlyHi Ravi,
Thanks for your reply.I have put the code as u said. It is modifying the whole coloumn insted of modifying Current row of the coloumn.
I have tried to modify the screen property using Table control attributes (TC-COLS).The following commented code is that logic.Even that also doing the same thing.Can yoy please tell me how to do it.
MODULE tc_get_lines OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'X_ZPINV-CHARG'.
IF fg_batch = ' '.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
LOOP AT tc-cols INTO tc_wa
WHERE screen-name = 'X_ZPINV-CHARG'.
IF x_zpinv-matnr IS NOT INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = x_zpinv-matnr
IMPORTING
output = v_matnr.
SELECT SINGLE * FROM marc WHERE matnr = v_matnr
AND werks = w_plant.
IF marc-xchar IS INITIAL.
tc_wa-screen-input = 0.
ELSE.
tc_wa-screen-input = 1.
ENDIF.
MODIFY tc-cols FROM tc_wa INDEX sy-tabix." transporting screen-input
ENDIF.
ENDLOOP.
ENDMODULE. "TC_GET_LINES OUTPUT -
Mapping issue: FCC: Idoc for each record in file
Hi,
I have file to Idoc scenario.
I receive csv file with multiple records.
The requirement is to create an Idoc for each record.
For eg.
source file
A1,B1,C1
A2,B2,C2
A3,B3,C3
After FCC
<MT>
<TRANS>
<ROW>
<A>A1</A>
<B>B1</B>
<C>C1</C>
</ROW>
<ROW>
<A>A2</A>
<B>B2</B>
<C>C2</C>
</ROW>
<ROW>
<A>A3</A>
<B>B3</B>
<C>C3</C>
</ROW>
</TRANS>
<MT>
I have first tested it with only 1 record to test end to end connectivity. It works as expected and Idoc is posted to target system.
Now when I am trying to send multiple records, I am getting some issues.
Below are the steps that I have taken to process multiple records:
1. Changed the cardinality of ROW (child of RecordSet) from 1 to Unbounded.
2. Changed the occurance of Idoc to Unbounded.
3. Mapped ROW to Idoc root.
I have tested the mapping in IR and it generates multiple IDOCs.
When I send the test file, it fails with error Tag found instead of tag IDOC BEGIN=
I can see the xml message created with multiple ROWs in XI by File adapter in sxmb_moni.
When I do Test Configuration in ID, with the XML message extracted from sxmbmoni, the result that I got was:_
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>
This means that idoc was not created while mapping.
But the same sample message works OK in IR!
Pls help where I have missed.
Regards,
Anirudh.Sudhir,
Thanks for your response.
FCC is working fine. I have taken the XML message in XI created after FCC from csv sample message.
I have tested this message in IR by placing it between
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
</ns0:Message1>
</ns0:Message>
It is working fine and Idocs are created in mapping in IR.
But the same sample message is creating below output ID!
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>
Regards,
Anirudh. -
How to have a unique value for each record??
could any 1 help me out in this...
I want to have a column name 'Order No' which should be unique.
How to generate a unique value for each record.??could any 1 help me out in this...
I want to have a column name 'Order No' which should be unique.
How to generate a unique value for each record.?? If you are using SQL PLUS to create the table try something like
this:
CREATE TABLE ORDER_TEST (
ORD_NO NUMBER (8) NOT NULL PRIMARY KEY,
ORDERDATE DATE,
CUSTID NUMBER (8) NOT NULL,
SHIPDATE DATE,
TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK
(TOTAL >= 0),
CONSTRAINT ORD_FOREIGN_KEY FOREIGN KEY (CUSTID) REFERENCES
CUSTOMER (CUSTID),
CONSTRAINT ORD_UNIQUE UNIQUE (ORD_NO)
-- or a simpler table example
DROP TABLE ORDER_TEST;
CREATE TABLE ORDER_TEST (
ORD_NO NUMBER (8),
ORDERDATE DATE,
CUSTID NUMBER (8) NOT NULL,
SHIPDATE DATE,
TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK
(TOTAL >= 0),
CONSTRAINT ORD_UNIQUE UNIQUE (ORD_NO)
note: ORD_NO can also be a primary key
If you are doing the INSERT during runtime from a form first
create a sequence in SQL PLUS to handle the ORD_NO value:
Create SEQUENCE ORDERNO_UNIQUEVAL_sqnc
START WITH 000001
NOMAXVALUE
NOCACHE;
and reference it as the ORD_NO parameter in your INSERT
statement:
ORDERNO_UNIQUEVAL_sqnc.NEXTVAL
note: to maintain data integrity you must use the sequence
everytime you insert a new order to table. To start a new
sequence drop the sequence and re-create it with whatever "START
WITH" value you want.
Hope this helps
Kevin -
How to genarate Primary Key for each record in XI Mapping
Hi,
I need to genarate primary key for each record in the paylod in mapping..
Eg: if i have a 10 reacords i need to have a primary key for each record..starting with the
Record Primary key
First 001
Secound 002
Tenth 010
If i need to write any user defined funtion... can any one provide the code for it.
Thanks
AmareshHi Bavesh,
I will explain with the example:
XML:
<Record 1>
<Primary key>
<value1>
<value2>
</Record 1>
<Record 2>
<Primary Key>
</Record 2>
like above i will be getting n number of recored and in each record i need to genarate primary key in XI.and the key sould be in sequence...
like for the first record 1 secound 2 like that primary key should add to the privous Primary key.
and this is for each payload.
Thanks
Amaresh -
How to dpwnload one XML file for each report row
Hi all,
i have a report on the products table with about 1000 rows
desc of table products
product_id varchar (10)
product_desc varchar2 (2000)
I would like to download on the file system an xml file for each row of the report
the nane of each xml file = <product_id>.xml
thanks in advance
kmHi,
You would probably find it better to search on the PL/SQL forum as this is more their area than Apex.
From what I can see in there (and there are a number of examples that would help you), you need to do something like:
DECLARE
vPATH VARCHAR2(50) := '/DEV';
vFILENAME VARCHAR2(50);
vFILE UTL_FILE.FILE_TYPE;
BEGIN
FOR C IN (SELECT PRODUCT_ID, PRODUCT_DESC FROM PRODUCTS)
LOOP
vFILENAME := C.PRODUCT_ID || '.xml';
vFILE := UTL_FILE.FOPEN(vPATH, vFILENAME, 'W');
UTL_FILE.PUT_LINE(vFILE, '<xdr>');
UTL_FILE.PUT_LINE(vFILE, '<product_id>' || C.PRODUCT_ID || '</product_id>');
UTL_FILE.PUT_LINE(vFILE, '<product_desc>' || C.PRODUCT_DESC || '</product_desc>');
UTL_FILE.PUT_LINE(vFILE, '</xdr>');
UTL_FILE.FCLOSE(vFILE);
END LOOP;
END;I haven't included exception handling etc and you should check on the PL/SQL forum to see if there are better examples!
Andy -
How to call webservice for each record in a table using ODI
Hi
I am new to ODI and Webservice. I want to invoke a scenario in ODI using web service. I hava a weblogic application server with axis 2 deployed.
But I want call webservice for each record in a table
For eg: "EMP" table have 50 records, for each record web service should invoke
Can any one help me on it.
Thanks,
phani
Edited by: user12774166 on Jun 6, 2010 11:16 PMIf your goal is "call" a web service, Jason's Straub's [flex-ws-api|https://flex-ws-api.samplecode.oracle.com/] is by far the best I've seen. You might want read more about it on [his blog|http://jastraub.blogspot.com/search?q=+flex_ws_api+].
Tyler Muth
http://tylermuth.wordpress.com
[Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book] -
Create single message in receiving side for each record in the sender file
Dear Experts,
My Interface is from FILE to MQ (JMS)..
I have a specific requirement in my project, I have multiple files in sender directory ( /tmp)
Ex: FILE_20090202.TXT
FILE_20090203.TXT
FILE_20090204.TXT
FILE_20090205.TXT
And each file has couple of records just shown below:
ABC 123 WER SER
BCD 345 WEDR SER
CDE 567 GHTE DDGG u2026. Etc..
I have to process all the files at a time ( may be I can use file masking by FILE*.txt) , one message has to be created in MQ for each record of the file..
Ex:
Message 1: ABC 123 WER SER
Message 2: BCD 345 WEDR SER
Message 3: CDE 567 GHTE DDGG
Valuable inputs are appiciated !!
Cheers,
KumarAs already suggested, multi-mapping can be used
You need to set target root node occurrence to unbounded and map root node accordingly
you will have to use enhanced interface determinaion
For detail refer:
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible -
Graphical mapping question - need to create 2 nodes for each record
The mapping is from flat to nested, i.e. flat file to FIDCC2 idoc. Each record has to go to 2 repeated IDoc segments, each one with different posting key. Right now, I have it working for each record to a segment(for one segment) by using splitByValue (value change). How can I repeat the creation of another but with slightly different constant.
Also, how do I add line numbers? I remember seeing a posting on this a while ago - cannot locate it.
Will be Rewarded WELL.
Thanks,
PamHi, Pam
Using the following example to store it as global variable
SetParameter from GloabalContainer:
container.getGlobalContainer ().setParameter ("COUNTER", "0");
GetParameter from GloabalContainer:
String myCounter = (String) container.getGlobalContainer().getParameter ("COUNTER");
When you map to your constant, store it in global variable, then you map other field, get current global variable, check its value, based on the value, you do proper mapping.
Hope it helps
Liang -
How to append parameter with URL for each record in table control?
Hi,
I have one table control which contains 5 columns.
(tripno, startdate, destination, reason, activities)
In 5th column, i need to display URL for each record.
for ex:
www.abc.com/test?tripno=1
www.abc.com/test?tripno=2
www.abc.com/test?tripno=3
when user clicks a particular hyperlink, it navigates to another page/component thru URL with one key field(tripno) to retrieve related records in next page.
1) i am not able to assign tripno to each record. when i assign tripno, its taking the last value which i assigned. ie. tripno=3 only.
How to assign URL to Reference field of LINK_TO_URL element at run time?
OR
2) we can do like this.
Simply assign url to reach record without key field.
www.abc.com/test
www.abc.com/test
www.abc.com/test
when user clicks a particular link, we can assign corresponding key field to the URL.
Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
how to do?Hi MOg.
Not sure whether I understand you .. but in the 5th column you want to have the reference URL. Is this the activities columen from you example?
Nevertheless, you need a attribute (String) in your context node which contains the URL. Bind this to the reference filed of linktourl. If you can not extend the structure you can create a sub node (cardinality 1:1) which contains the refernce attribute.
Then loop over all elements and concatenate www.abc.com/test?tripno= with the tripno of the current element into the reference field.
Hope tis helps,
Sascha.
Bind the -
Where can I find the user key precedence hierarchy for each record type?
Example: I want to update contact records through the CRMOD web service API.
So I'm looking at the "Oracle Web Services On Demand Guide, Version 6.0 (released August 2010)", page 316, and it lists 3 user keys for Contact.wsdl v2.0 in the following order:
1. FirstName and LastName
2. Id
3. ExternalSystemId
From what I can see, this order does not seem to reflect the precedence hierarchy of these 3 user keys.
I've send in a test update where I supplied a FN, LN, and EUID, ... and the contact that matched the EUID got updated.
(I'm glad it did, because EUID really needs to take precedence over FN+LN, otherwise you could never change a contact's last name without knowing the contact's Row Id.)
Does anyone know where I can find the precedence hierarchy for each record type's user keys (other than doing the obvious and time consuming "try+error")?Hi,
we experienced similar problems with the account object and asked the oracle support about this. This was their answer:
"[...] thank you for contacting CRM On Demand Customer Care. Regarding your question, please note the below: when perfoming a query, the user key fields are looked for in this order: - Row id - External System Id - AccountName and Location. Basically, the search will be performed by AccountName and Location only when the other fields are missing. This is an expected behavior because, the Row Id is the strongest filter as it is always unique. The external system Id comes second, as it is supposed to be unique in another system."
So, I guess the order is always
1) Row Id
2) External System Id
3) specific field combinations...
kind regards
Kai
Edited by: Kai Hartmann on 28.04.2011 07:10
Maybe you are looking for
-
HT4901 How can I change my iCloud email address?
I had someone set up my iCloud email address and now I need to change it. Can someone tell me how? Thank you
-
Blackberry as a modem??
anyone know if or how I can use my blackberry at home to connect my computer to the internet? Is this even possible? I don't have this service at home only at work.
-
Can't get my pictures from iphone to computer (windows)
I can't get my pictures from iPhone to computer. However, it does work from computer to iPhone
-
Not burning DL DVDs since snow.
Tried various DVDs, cleaned (1x) the drive, used internal and external drive, used Toast and Burner. Trouble occurs only with expensive DLs, not on CDs or SL.... __ k.
-
Can IT0077 be added in the portal
Hi Gurus, Can IT0077 be added in portal as part of standard SAP? Please let me know how can it be done? Thanks,