Basic Mapping question
This should be easy, but I can't seem to get it: on my
development server, my site's files are in this folder:
C:\CFusionMX\wwwroot\xyzSite\.
My standard page footer (footer.cfm) has various links to
pages in different levels of my directory structure. I want to
include footer.cfm without making reference to the xyzSite folder,
since my web hosting service is not set up the same way.
How do I define the mapping to make this work? Thanks.
Can you put it in your web root and just refer to it as:
<cfinclude template="/footer.cfm" />
Similar Messages
-
I have some Basic iPhoto questions before I start using the program:
- does iPhoto apply any compression or change images in any way when they
are imported?
- after images are imported, can the original source folder of images be deleted off of the mac?
- can Quicktime files exported from iPhoto be viewed on a Windows computer?
- can iPhoto handle large resolution images that might be as large as 8-15mb each? does it display them quick? are there any known file size issues?
Thanks!!!!kat.
Is there a way to use iPhoto on a network so other users can read and possibly write to an iPhoto library on a networked mac?
iPhoto is a consumer level photo organiser, not a server. It's possible to share photos but libraries are very difficult and fraught with the danger of database corruption. Some have reported success.
Is it possible to password protect or secure certain images in the library so they can not be seen by anyone?
No. The best I can suggest there is to create a second library and store it in a secure area like a protected dmg. But remember, you can only have one library open at a time.
After photos are deleted from iPhoto, are there any remaining traces or cached files anywhere other than the trash
If you delete photos from iPhoto and empty the iPhoto trash then the pics are removed from the Finder as well. They remain as findable as any other deleted file from that point, which is, very, if the searcher in knowledgeable.
Regards
TD -
Object class deployment - Basic form question
OK, I subclass calendar object from Oracle provided standard
object class. What do I need to deploy to use this form now
apart from calendar.pll and my fmx. What about the object class
from which I sub-class. Do I need to compile and deploy that
also? How will form resolve this on run time the parent object
class as I really did not copy, just sub class and we do not
deploy original class? Basic form question. Thanks.You can set the "help" property on the field (which gives you the little "information" icon link beside the field).
You could also try adding another field of another class above or below:
<Display class='InlineAlert'/>
<Display class='ErrorMessage'/>
<Display class='HtmlPage'/>
..etc
-Rob -
Adding Date/Time Field + X Number of Days - Basic Calculation Question
I am assuming this is a basic calculation question. New to Adobe LiveCycle Forms.
I have a simple form containing a table. The table appears as such:
Text
Formatted as Date/Time Fields
Header 3
Monday
user wil choose the beginning date (Date/Time) this is DateTimeField1
Tuesday
this should calculate DateTimeField1 + 1
Wednesday
this should calculate DateTimeField1 + 2
Thursday
this should calculate DateTimeField1 + 3
Friday
this should calculate DateTimeField1 + 4
Saturday
this should calculate DateTimeField1 + 5
Sunday
this should calculate DateTimeField1 + 6
Calculations are performed after the date is chosen for Monday. My mind tells me the simple calculation of DateTimeField1 + 1 is not going to work (and in fact doesn't!) as it needs to change Monday to a number first. I saw on another thread the following:
Num2Date(Date2Num(Date(DateTimeField1), "DD.MM.YYYY")+7, "DD.MM.YYYY")
Thought this was going to get me close. No cigars though!
Any quick help is greatly appreciated. And since I am new to this, details about what needs to be changed would be great too!
ThanksHere an addition for you date field.
This FormCalc script in the exit:Event will check it the selected date is on a monday.
If not it will go the days back until the last monday.
var Selection = Date2Num($.formattedValue, DateFmt(2))
var WeekDay = Num2Date(Selection, "E")
var NewDate
if (WeekDay eq 1) then
NewDate = Selection - 6
elseif (WeekDay eq 3) then
NewDate = Selection - 1
elseif (WeekDay eq 4) then
NewDate = Selection - 2
elseif (WeekDay eq 5) then
NewDate = Selection - 3
elseif (WeekDay eq 6) then
NewDate = Selection - 4
elseif (WeekDay eq 7) then
NewDate = Selection - 5
else
NewDate = Selection
endif
$ = Num2Date(NewDate, "EEE DD.MM.YYYY")
Hope this helps, too. -
CRMXIF_REL_SAVE_M01 - Mapping Question
Hello All,
I have a mapping question, hope some one can answer my question. Please see the link first and the see my question
http://www.flickr.com/photos/8764045@N06/4265246260/sizes/o/
I'm mapping the CRM IDOC to the JDBC Call. I have small problem here. All the target fields are Mandatory 1..1 .
I will explain with an example:
I have field from source E102BUS_EI_STRUC_TEL_DATA/COUNTRY mapped to target field.
I used Map With Default so that even if the values are not there frm the source the target field will be mapped with blank.
But the problem is the parent node for E102BUS_EI_STRUC_TEL_DATA is E102BUS_EI_BUPA_TELEPHONE is 0.999999 , so sometimes that segment is not coming. In this case Map with Default won't work. Map with Default willl work only if the Parent node is present.
If you ask me to do Exists node function on E102BUS_EI_BUPA_TELEPHONE and then apply Map with Default, then even this won't work.
Apologize if I confused you guys. Please let me know if you need more clarification.
Thanks!
Raj.Hi Raj,
Try to do a mapping like this
E102BUS_EI_STRUC_TEL_DATA(context E102S_EI_BUPA_TELEPHONE_CON)--mapwithdefault-->then
E102BUS_EI_BUPA_TELEPHONE-->exists------------------------------------------------------------------>if---->splitbyValue
let us say this output (the output of splitbyvalue) as 'VALUE'
VALUE-----------------------------------------------> then
VALUE|-->count--->greater----------------------->if----->targetField
Constant(0)----> Constant(blank)-->else
Regards
Suraj -
A top difficulty mapping question
Hello
dose anyone can give solution for this mapping question?
soruce :
<header>header</header>
<item>
<A>a1</A>
<B>b1</B>
<C>c1</C>
</item>
<item>
<A>a2</A>
<B>b2</B>
<C>c2</C>
</item>
<item>
<A>a3</A>
<B>b3</B>
<C>c3</C>
</item>
target:
<header>header</header>
<item>
<A>a1,a2,a3 .....</A>
<B>b1,b2,b3 .....</B>
<C>c1,c2,c3 .....</C>
</item>
The numbers of item is not fixed,it is unbounded.
so the target line length is not fixed at design time
welcome any hits,
Thanks !!
BR,
JeffreyHi,
Use cache parameter as Context.
public void add_element(String[] a,ResultList result,Container container)
//write your code here
String c = "";
int i;
for(i= 0 ; i < a.length; i++)
c = c + a<i> ;
if(i != (a.length-1))
c = c + ",";
result.addValue(c);
A(src)-->removecontext->UDF--->A(tgt)
B(src)--->removecontext->UDF--->B(tgt)
C(src)--->removecontext->UDF--->C(tgt) -
My main question is a very basic exporting question, but here is a super-condensed explanation of my big-picture goal for context:
Large (~450 MB) aiff on CD --> trim w/ Quicktime --> small (~16 MB) MP3 in iTunes
I would like to take an audio file (aiff) that is approximately 450 MB and export it from Quicktime and in doing so, reduce the file size and convert it to MP3. When I simply try to export it, it doesn't ask me about what size I want, nor does it give the option of MP3 formatting.
I have figured out how to reach my goal, but it's a mess. After I make my trims in QT, I have to:
1. select "share" instead of "export".
2. It asks me what size I want and I select small.
3. The file is then exported as a Quicktime movie into Mail and the size is reduced from 450 MB to about 20 MB.
4. I then have to "right-click" on the attachment in the email that is created,
5. save the attachment,
6. discard the email,
7. import the file into iTunes, and
8. create an MP3 in iTunes to finally arrive at my goal.
This seems like a ridiculously convoluted process to change a large aiff to a small MP3 and put it in iTunes. Any suggestions?Thanks. I guess the basic answer to my question is that it can't be done in one or two fell swoops. The problem is that it starts on a burned disc, and I need to make edits to it before it ends up in iTunes (to be eventually used in iWeb). I was hoping to avoid juggling back and forth between iTunes and QT. I either would have to send it back to QT to do the edits after -->iTunes-->mp3, or import the large file from the CD to QT, make the edits, save changes, import large file to iTunes, convert to mp3.
-
Few basic SRM questions .......
I recently completed the SRM training from SAP and I have few basic questions and need help. Full points will be rewarded.
These are my questions and it is based on SRM 5.0 Classic Scenario with R/3 backend
1. Invoice & confirmation transferred to R/3 via ALE ? . All other documents are transferred to R/3 via RFC?
2. Based on the configuration, if the material is available in the backend then reservation will be created. Other wise PO will be created. For text items, PR will be created.
a. Who (purchaser) will process the PR in R/3 and how it is processed?.
b. Who (purchaser?) will process the reservation in R/3 and how it is
processed?. Assume no sourcing is setup in this case and No MRP run.
3. How the vendor is linked to the Material or product category in SRM?. During the vendor replication from R/3, vendor and material/prod category link is automatically maintained?
4. How the vendor is linked to a specific purchasing org/group? Is it based on the prod category assigned in the org structure for each purchasing org or purchasing group?
5. How to do delta prod category replication?
6. How to do Delta Material Replication?.
7. Contracts and vendor list:-
In our SAP training we created these from the browser. But in the actual
implementation how do we create this?. Is it always from the browser?
8. Direct Material and Plan driven Procurement.
Can we use catalog items as direct material?. Just for example - > What
about Car Batteries that is directly used in production and has the inventory
also. But we are using electronic catalog for procuring this item. Is it possible to
order this as direct material?
9. How to replicate Plant. How to use DNL_PLNT?. Is BBP_LOCATIONS_GET_ALL will replicate all the PLANT's and its locations from the R/3 backend?
10. In the HR system, which transaction we can view the org structure?Hi
Answers to your questions ->
1. http://help.sap.com/saphelp_srm50/helpdata/en/e9/d0fc3729b5db48e10000009b38f842/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/74/ec7b3c91c1eb1ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/55/d77c3c3fd53228e10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/77/e97b3c91c1eb1ee10000000a114084/frameset.htm
2. Provided the necessary role is given to the Purchaser (Buyer) in the System.
a) Yes
b) Yes
3. http://help.sap.com/saphelp_srm50/helpdata/en/e5/f5e938b4ece075e10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/70/00c73a584611d6b21700508b5d5211/frameset.htm
4. http://help.sap.com/saphelp_srm50/helpdata/en/2c/867d3ca2156c6ae10000000a114084/frameset.htm
The vendor ORG has to be seperately created through trasaction PPOCV_BBP before replicating the Vendors from the R/3 System.
http://help.sap.com/saphelp_srm50/helpdata/en/70/00c73a584611d6b21700508b5d5211/frameset.htm
5. http://help.sap.com/saphelp_srm50/helpdata/en/42/d3b671ba67136fe10000000a1553f7/frameset.htm
6. http://help.sap.com/saphelp_srm50/helpdata/en/29/d586398dcfd74fe10000000a11402f/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/05/9b8139437eac2ae10000000a11402f/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/f5/b4bcdac7c40c4dba53e3695d18236c/frameset.htm
7. Yes, from Browser it's quite easy and is quite user-friendly.
8.
http://help.sap.com/saphelp_srm50/helpdata/en/d3/4b9c3b122efc6ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/18/db183d30805c59e10000000a114084/frameset.htm
9.
You can use the following three routines to download locations from the backend system and store them as business partners in SAP Enterprise Buyer.
BBP_LOCATIONS_GET_ALL
To get all the location numbers from each backend system that is connected
BBP_LOCATIONS_GET_FROM_SYSTEM
To get all the location numbers from one particular backend system
BBP_LOCATIONS_GET_SELECTED
To get selected locations
Previously, locations were not given business partner numbers in SAP Enterprise Buyer. If you are configuring an upgrade, you can use routines BBP_LOCATIONS_GET_FROM_SYSTEM and BBP_LOCATIONS_GET_SELECTED to check that the following conversions have been made:
· Conversion of user favorites
· Conversion of user attributes
· Conversion of old documents
Routine BBP_LOCATIONS_GET_ALL checks these automatically.
Once you have run the routines, the location data is available in the SAP Enterprise Buyer system. Table BBP_LOCMAP contains the mapping information (in other words, which business partner number corresponds to which location in which backend system).
For more information, see SAP Note 563180 Locations for EBP 4.0 plant replication
http://help.sap.com/saphelp_srm50/helpdata/en/62/fb7d3cb7f58910e10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/77/e97b3c91c1eb1ee10000000a114084/frameset.htm
10. PPOCA_BBP(Create) / PPOMA_BBP(Change) / PPOSA_BBP(Display).
Regards
- Atul -
Hi,
I have few basic questions regarding mappings.
1) I think we can do everything by using Graphical Mapping. Then what is the purpose for Java, XSLT and ABAP mapping? Please give me an example for this...
2) Which mapping will give better performance? Is there any comparison document available in SDN?
Appreciate your help!
Thanks,
Vivekhi,
Mapping Techniques
XI provides 3 standard ways of interface mapping between source and target.
Graphical mapping
Java Mapping
XSLT Mapping
Two more additional mapping types can be activated in XI by making changes to the exchange profile. Those two mappings are
ABAP mapping
XSLT mapping with ABAP Extensions
Graphical Mapping
Graphical mapping is a common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It hardly involves coding. (Exception - User defined functions). But sometimes with graphical mapping it is difficult to produce required output. For example ... text/html output, namespace change, sorting or grouping of records etc.
ABAP Mapping
A person comfortable with Object Oriented ABAP can go for ABAP mapping instead.
Java Mapping
Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.
SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.
XSLT Mapping
One can also think of Java mapping as another option but it is a bit complex and required knowledge of Java. In such cases, XSLT mapping can be the best approach to meet the requirements.
check these links too..
Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/c8/b78d406b305537e10000000a1550b0/frameset.htm
For Java Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
For XSLT Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
Error handling in XSLT Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/8a/7672f7d7e444439fd7024f806221a4/frameset.htm
You can also refer some How to guides:
XI New Mapping Features article,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi%203.0%20new%20mapping%20features%20article.evn
Generic XSLT Mapping and Sample Code,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi%20code%20samples/generic%20xslt%20mapping%20and%20sample%20code.pdf
How to use ABAP-MApping in XI3.0,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
Thanks,
Vijaya. -
Dear Experts,
For transformations between EDI and basic IDOC types, are there any off-the shelf (ready to use) options? If yes what are they? If not, what is the easiest way of mapping in between these structures?
Our setup involves Seeburger's AS2 adapter.
ThanksHi Aamir,
Thank you for your response.
We are working in an environment where we do not have any control over the setup. So I have a few follow up questions, answers to which would help me immensely.
1. I saw that there are a"few" mappings available for which both the EDI and IDOC versions differ from what we need. So, is there anyway to get an actual listing of all supplied mappings?
2. In case you have worked for a similar scenario, is it possible for you to share a sample mapping spreadsheet ?
Thank you,
N -
SAP Cloud for Customer : Code list mapping question
Hi All.
I have a basic question. When we do code list mapping for our own defined mapping group and have to choose Data Type name what should be used as Namespace. I usually see two entries but not sure of their purposes. What is the difference between the two ? Which one should be used when we are trying to map custom CRM/ERP OnPremise values with new ones i cloud.
Please see attached snapshot.
Regards
ApoorvaHello Apoorva,
If you want to be compatible with CRM / ERP OnPremise I suggest to use "http://sap.com/xi/AP/Common/GDT".
HTH,
Horst -
Hi,
I'm working with two classes Car and Customer. The Car class has a Vector of Customers and the Customer class has a Vector of Car. Both are related by a many to many mapping.
I have noticed that I have to set one of the vector to read only to avoid the error message "More than one writable many-to-many mapping can not use the same relation table" in the mapping workbench.
I can understand that but is there a way to work around, I mean to be able to add a car to a customer and add a customer to a car with the both vectors?
Is there something to do with the cache?
I use Vector for the collection or Map class, have I to do otherwise?Hello Vladislav, I understand your first question in this thread, but I'm not sure I follow the rest, so let me respond to your first post:
"I have noticed that I have to set one of the vector to read only to avoid the error message "More than one writable many-to-many mapping can not use the same relation table" in the mapping workbench.
I can understand that but is there a way to work around, I mean to be able to add a car to a customer and add a customer to a car with the both vectors?"
The issue here is that with a Many to Many mapping the mapping is responsible for writing to the association table. So, you have a "CAR_CUST" association table. Imagine you add a Car "101" to a customer "501" and the requisite customer "501" to that car "101" in your object model. Then the association table should only be updated once, with an entry of "101, 501". But since the M-M is mapped in both directions, you need to tell TopLink which of these to consider as the "master" when updating the database.
If you didn't make one of the M-M mappings "read only", then TopLink would insert "101, 501" twice in the association table, and then at a later date you would see that the customer 501 had two 101 cars!
We do have a feature that allows for TopLink to maintain bidirectional relationships such that if you add or remove a target from one relationship, TopLink will automatically add/remove it from the opposite direction. In my opinion this is lazy programming! A good Java developer should insist on keeping his model up to date on his own. This feature was added because it's part of the EJB spec, not necessarily because it's a good idea ;)
- Don
Is there something to do with the cache?
I use Vector for the collection or Map class, have I to do otherwise? -
Hello,
I have a rather simple question regarding a mapping.
Lets say my input message is as following:
<mes1>
<seg1>
<name1>Peter</name1>
<street1>HighCrt</street1>
</seg1>
<seg2>
<name2>Vlad</name2>
<sub2>Trickst</sub2>
</seg2>
<seg2>
<name2>Rinaldo</name2>
<sub2>fiave</sub2>
</seg2>
</mes1>
My output should be:
<out>
<put>
<name>Peter</name>
<name>Vlad</name>
<name>Rinaldo</name>
</put>
</out>
So my output field "name" should created in case I have a "name1" field in the source message and additionally it should be created for every "seg2" element that is present in the source message and it should be filled with the value of "name2".
How can I in the mapping trigger that the "name" element of the output message will be generated for each of the two described elements of the source message?
Best Regards,
PeterHi,
Could be possible using user defined function.
Create a user defined Function with cache = context
public void createNodeName(String[] a,String[] b,ResultList result,Container container){
if ( a.length > 0 )
result.addValue ( a[0] ) ;
for ( int i = 0; i < b.length; i++ )
result.addValue ( b<i> );
in Mapping use
1. name1 as first argument
2. name2 with removeContext as second argument -
Hi,
I am trying to get my head around ABAP mappings and have a few questions.
In the below code sample which I find in every example and blog it talks about specific steps -
*initialize iXML, * create iXML factory object, * create streamfactory object, * create input stream object, * initialize the input xml document, * parse the input xml document
In these steps the code is always exactly the same so my question is are these just standard steps that are implemented every single time an abap mapping is used and hence only standard lines that never have to be changed or will they be different depending on the mapping.
I am trying to work out where I will begin my coding.
So would somebody be so kind as to give me a brief explanation of the above mentioned steps.
Thank you
METHOD if_mapping~execute.
* initialize iXML
TYPE-POOLS: ixml.
CLASS cl_ixml DEFINITION LOAD.
* create iXML factory object
DATA: ixmlfactory TYPE REF TO if_ixml.
ixmlfactory = cl_ixml=>create( ).
* create streamfactory object
DATA: streamfactory TYPE REF TO
if_ixml_stream_factory.
streamfactory = ixmlfactory->create_stream_factory( ).
* create input stream object
DATA: istream TYPE REF TO if_ixml_istream.
istream = streamfactory->create_istream_xstring( source ).
* initialize the input xml document
DATA: idocument TYPE REF TO if_ixml_document.
idocument = ixmlfactory->create_document( ).
* parse the input xml document
DATA: iparser TYPE REF TO if_ixml_parser.
iparser = ixmlfactory->create_parser(
stream_factory = streamfactory
istream = istream
document = idocument ).
iparser->parse( ).Hi,
The above lines you mentioned deal with initialization of the iXML parser for parsing through the XML payload, so they would remain the same for all mapping where you are parsing the input payload.
The coding for you specific mapping will begin after this, something like :
* Implements the DOM generating interface to the parser
iparser->parse( ).
emp_node_collection = idocument->get_elements_by_tag_name_ns( name = 'Order' ).
emp_node_length = emp_node_collection->get_length( ).
emp_node_iterator = emp_node_collection->create_iterator( ).
where you start reading the xml node values.
Hope this helps.
Regards -
One to one mapping question -- can I just map a lookup field for queries?
I have a table with a state code. I'd like to have a "virtual lookup" on the java class to a region table. I.e., this java class "studies" has a state code. I can map a one-to-one to the descriptor class that has the ref table, but I'd like to have a property in the java class pre-mapped to the "region" field in this lookup so for querying i can just use:
ReadAllQuery q = new ReadAllQuery();
q.setReferenceClass(study.class);
q.setSelectionCriteria(new ExpressionBuilder().get("Region").equal(Region));
to get all the studies for a particular region.
am I going about this wrong? or do I have to get the reference table descriptor fromt he one to one map and do something different?well,on the way home last nite, I realized I'd had a complete brain fart. I've done this before. I just set up a 1-1 map between descriptors and then built the query like this:
q.setSelectionCriteria(new ExpressionBuilder().get("refFPO").get("FPO_NO").equal(FPO));
You can get the pointer to the "refFPO" which is the the descriptor mapped 1-1, then appended the column you wish to get.
I still went ahead and amended my class to include a read-only, non-toplink mapped attribute "FPO" which just gets the reference variable pointing to "refFPO.getFPO_NO();
I answered my own question just in case anyone wondered ....
Maybe you are looking for
-
I'm new to iPad. I've installed some apps. The apps are "open" even when I go to that page and go off it. How do I close them? I'm sure they are draining my battery. Can someone explain what I'm doing or not doing correctly? Thanks
-
HELLO Does anyone has any idea why the decreasing font size shortcut in PS is not working for me? I got correct CE keyboard layout (both in Classic and OSX), CE version of software. And, opposite shortcut, for increasing font size cmnd,shft,> is work
-
Hi, i'm curious to know if i'm the only that have ugly mime-type icons for LibreOffice files (.odt .doc .ods ...) Before I like to see the original LibreOffice mime-type icons, so after a lot of research on the web i've found the solution. Following
-
EJB Best Practives: Objects or Primitives?
I'm trying to understand which is the better option when developing EJB's (CMP and BMP). It makes sense to keep the primary key an object, but will using primitives for other fields affect performance as such? Up until now I've been pretty much in a
-
By default first tab should open, when user clicks on the Open popup.
Hi Team, I am working on Jdev11g. I am facing problem to Open Fisrt tab from popup when i revisite to it irrespective of the Tab which was earlier selected while closing the popup. Currently i am populating one list for records in ADF table and in fi