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.
Similar Messages
-
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 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 -
Generating an IDOC for each Order present in the file (File to IDOC)
Hi ,
I have a requirement where in i have to generate an idoc for each orders present in a file . Initially i had implemented 1:N mapping by changing the occurence of idoc to 1..unbounded & using it as external definition i was able to generate multiple idocs.
But now the requirement is that even if one record contains invalid data , then XI shoul process remaining records(which has valid data) & then raise an alert for the invalid record . I have implemented this approach by using BPM (splitting the message) & the sending out each record as a single message to (1:1 mapping between file & IDOC).
But now they dont want me to use an BPM . They want me to come up with an approach using 1:N mapping only where in i can make sure that the mappig doesnt fail even if there is one invalid record ,they want me to process remaining records & raise an alert for the invalid one .
As far as i know this cant be done without BPM . Please let me know any valuable suggestions or inputs if there is any
Regards
Vinay P.Hi Vinay,
Had a similar requirement few days back..
What we did was to do a multimapping of 1:N where N = N1 and N2, N1 is the Idocs which you are doing today, N2 is the set of invalid records...
Now we have written this as a file and then created another interface which will pick the file and based on the name of file we decided the To address. We have used mail package and this interface (file to mail ) was made as a generic one so that it can be used across many interfaces...
filename and To address relationship was maintained as a value mapping in ID... You can have a thought of this approach and try to send the invalid records as a mail rather than alert.
Regards
Suraj -
Can I plot 2 locations at the same time for each record in a table
I'm trying to plot 2 Locations (2 points on a Power View Map) at the same time for each record/project in a table
I can plot 1 location for each project of course with no problem
but I'm trying to show the Begin Point and the
End Point for each project at the same time
Is this even possible?First of all THANKS this worked!
But now I stumbled on another issue. So I actually have 3 tables (and I've adopted them to the file you sent)
Table 1 => TripData
Trip
LongLat
Location
Type
TypeCode
Size
NW Tour
47.568077, -122.320800
Seattle, WA
Begin
0
1
NW Tour
47.035608, -122.884812
Olympia, WA
End
1
1
Cali Trip
37.808848, -122.412580
San Francisco, CA
Begin
0
1
Cali Trip
32.682611, -117.178348
San Diego, CA
End
1
1
Table 2 =>
TripInfo
Trip
OneLongLat
NTP
NW Tour
47.568077, -122.320800
1/1/2015
Cali Trip
37.808848, -122.412580
1/5/2015
Table 3 =>
ALLTrips
Trip
Stop
Owner
NW Tour
1
Owner1
NW Tour
2
Owner2
NW Tour
3
Owner3
NW Tour
4
Owner4
NW Tour
5
Owner5
Cali Trip
1
Owner6
Cali Trip
2
Owner7
Cali Trip
3
Owner8
Cali Trip
4
Owner9
Cali Trip
5
Owner10
Cali Trip
6
Owner11
This is how the Diagram View looks like in PowerPivot
Trip Data => Trip Info <= ALLTrips
Since I don't know how to post pictures
The MAP FIELDS are as follows
SIZE - Count of Stop(s)
LOCATIONS - OneLongLat followed by
LongLat (drill down feature)
COLOR - Trip
The problem now happens with the drill down feature
You can either plot OneLongLat which is the general location for each trip
Or LongLat of each trip which shows the begin and end points
But you can't use the drill down feature???
If instead of OneLongLat you use a
State Column it actually works!!!
I wonder if it has to do with the fact that both locations used for the drill down are Long/Lat numbers???
Any suggestions???
And again Thanks for the response! -
Mapping issue in idoc to JDBC scenario
mapping issue in idoc to JDBC scenario
source structure
E1KNB1M
BUKRS = 1000
E1KNB1M
BUKRS= 9000
E1KNB1M
BUKRS= 2000
THE NODE E1KNB1M is repeated many times and the field BUKRS is also repeated with E1KNB1M as above
TARGET field : ISFRANCHISE
if any where value of BUKRS =9000 we have to pass Y to the target filed, else N
if BUKRS = 9000 THEN ISFRANCHISE= Y
ELSE
ISFRANCHISE=N
I've done the mapping as below
BUKRS = 9000--> IF THEN Y ELSE N--
> ISFRANCHISE
BUT everry time the target value is N only
pl suggest
rgds
mojibmapped like this
BUKRS--->SORT---->
EQUALS --------IF---THEN Y
9000------------------------> ----------------->ISFRANCHISE
ELSE N
context of BUKRS set to parent node
its worked
thanks to all for valuable suggestions
rgds
mojib -
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. -
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 -
Calling Procedure for each record ?
Hi,
I am using a procedure in a mapping.
I defined the procedure which is having 4 out parameters.
I am assigning these default values to the tables in a mapping.
When I see the generated code in a mapping, I observed that, the procedure is being called for each record.
But actually, its enogh to be called only once.
Could any one please help me, how can I restrict the procedure calling for each record.
Any help would be greatly appreciated.
Thank you,
Regards,
Gowtham SenHi,
U can use MAP-INPUTS operator to give the inputs to the procedure and use a PRE_MAPPING operator to call the procedure. this way even if u feel u want to make the mapping running thru an scheduler u can still use it without changing the code.
Regards
Bharath -
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 -
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] -
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 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
Maybe you are looking for
-
Note works under JDL 1.3.1, but not under JDK 1.2.2. Is there a fix? C:\bea\wlserver6.1\samples>c:\jdk1.3.1_01\bin\java examples.jndi.InitialContextExample t3://localhost:9001 system password WebLogic context created on behalf of "system" C:\bea\wlse
-
Zen Vision: M Charging Probl
I bought a Zen Vision: M six or seven months ago, and since then the player has been great, my only problem with it is it is notorious for freezing when I try to change songs. This happens rarely, but when it does I have to do a full system reset. An
-
Facing problem in transferring data in APD
Hi All, I have a query which has 2 structures and so the in normal conditions also when the query is executed it takes a lot of time to execute and the output file is also huge. Now the client wants to automate this query by adding one new field in i
-
Indesign XML workflow, how to handle footnote (CS3)
Hi Dave/All, Nearly 3 moths i'm struggling more with doing footnote. Is it possible or not i.e. xmlElement move to the footnote Any one help me pls!!! Thanks in Advance sudar
-
can I have muse's DNS details so I can get my host to forward to the muse hosting site. the site will be for www.thebeachbreakbar.com thansk Kim