Mapping tweak

Hello all
My mapping requirement is
i need to use a if condition to check for the value of a field in source
Source:
<QUOTATION_HEADER_IN>
<ORDCOMB_IN>X</ORDCOMB_IN>
</QUOTATION_HEADER_IN>
<QUOTATION_ITEMS_IN>
<item> 0 to ..unbounded
<REASON_REJ>R1</REASON_REJ>
</item>
<item>
<REASON_REJ>R2</REASON_REJ>
</item>
<item>
<REASON_REJ>R3</REASON_REJ>
</item>
</QUOTATION_ITEMS_IN>
Target Exactly the same. one to one mapping but IF ORDCOMB_IN = X then all the REASON_REJ fileds must have the value R1 ( which is is the first occurance)
I am trying to achieve this. what I have tried is
Mapping:
                ORDCOMB_IN -
>
                                                          UDF --> SplitByValue --> REASON_REJ(Target Field).
   REASON_REJ --> RemoveContext -->
UDF:
Execution Type : Context.
1st param : ORDCOMB_IN
2nd param : REASON_REJ
if(ORDCOMB_IN.length > 0)
  if(ORDCOMB_IN[0].equals("X"))
    for(int i = 0;i<REASON_REJ.length;i++)
      result.addValue(REASON_REJ[0]);
I got this advice from rohit , It worked like charm , But now i need an else block with the If condition . If the the condition that ORDCOMB_IN is notequla to X then REASON_REJ must be mapped as it is to the target strucutre . How can tweak the code to achievbe this ?
When i tried the same with IF with else function , it works only for one instance of ITEM structure , if there are more than one ITEM structure it doesn't work .
Any ideas?
Thanks a lot

Check the latest reply... 
result.addValue(REASON_REJ<i>);
not
result.addValue(REASON_REJ);
It will work . I just tried it.
Pooja

Similar Messages

  • Poor performance of maps

    Does anyone know of any configuration parameters that are really useful when attempting to tweak the performance of the maps in OBIEE 11.1.1.5? Although I'm the only user on a virtual box with 4GB of RAM and 2 CPUs, map rendering is painfully slow. (XML posted below, working against the "A - Sample Sales" subject area). All other OBIEE performance is quite snappy. Maps ... not so much.
    Any ideas?
    <saw:report xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlVersion="201008230" xmlns:sawx="com.siebel.analytics.web/expression/v1.1">
    <saw:criteria xsi:type="saw:simpleCriteria" subjectArea="&quot;A - Sample Sales&quot;">
    <saw:columns>
    <saw:column xsi:type="saw:regularColumn" columnID="c3131dd22bf3cc8ee">
    <saw:columnFormula>
    <sawx:expr xsi:type="sawx:sqlExpression">"Time"."T05 Per Name Year"</sawx:expr></saw:columnFormula></saw:column>
    <saw:column xsi:type="saw:regularColumn" columnID="cddcbd415b4c3bdfa">
    <saw:columnFormula>
    <sawx:expr xsi:type="sawx:sqlExpression">"Ship To Geo Codes"."R62 Geo Ctry State Name"</sawx:expr></saw:columnFormula></saw:column>
    <saw:column xsi:type="saw:regularColumn" columnID="c371b413a6d22de6a">
    <saw:columnFormula>
    <sawx:expr xsi:type="sawx:sqlExpression">"Products"."P4 Brand"</sawx:expr></saw:columnFormula></saw:column>
    <saw:column xsi:type="saw:regularColumn" columnID="c95ae97ecd00f14f7">
    <saw:columnFormula>
    <sawx:expr xsi:type="sawx:sqlExpression">"Base Facts"."1- Revenue"</sawx:expr></saw:columnFormula></saw:column>
    <saw:column xsi:type="saw:regularColumn" columnID="c229fa547a7d1b4cd">
    <saw:columnFormula>
    <sawx:expr xsi:type="sawx:sqlExpression">"Base Facts"."2- Billed Quantity"</sawx:expr></saw:columnFormula></saw:column></saw:columns>
    <saw:filter>
    <sawx:expr xsi:type="sawx:comparison" op="equal">
    <sawx:expr xsi:type="sawx:sqlExpression">"Ship To Geo Codes"."R61 Geo Country Code"</sawx:expr>
    <sawx:expr xsi:type="xsd:string">USA</sawx:expr></sawx:expr></saw:filter></saw:criteria>
    <saw:views currentView="3">
    <saw:view xsi:type="saw:compoundView" name="compoundView!1">
    <saw:cvTable>
    <saw:cvRow>
    <saw:cvCell viewName="titleView!1">
    <saw:displayFormat>
    <saw:formatSpec/></saw:displayFormat></saw:cvCell></saw:cvRow>
    <saw:cvRow>
    <saw:cvCell viewName="tableView!1">
    <saw:displayFormat>
    <saw:formatSpec/></saw:displayFormat></saw:cvCell></saw:cvRow></saw:cvTable></saw:view>
    <saw:view xsi:type="saw:titleView" name="titleView!1"/>
    <saw:view xsi:type="saw:tableView" name="tableView!1">
    <saw:edges>
    <saw:edge axis="page" showColumnHeader="true"/>
    <saw:edge axis="section"/>
    <saw:edge axis="row" showColumnHeader="true">
    <saw:edgeLayers>
    <saw:edgeLayer type="column" columnID="c3131dd22bf3cc8ee"/>
    <saw:edgeLayer type="column" columnID="cddcbd415b4c3bdfa"/>
    <saw:edgeLayer type="column" columnID="c371b413a6d22de6a"/>
    <saw:edgeLayer type="column" columnID="c95ae97ecd00f14f7"/>
    <saw:edgeLayer type="column" columnID="c229fa547a7d1b4cd"/></saw:edgeLayers></saw:edge>
    <saw:edge axis="column"/></saw:edges></saw:view>
    <saw:view xsi:type="saw:mapview" name="mapview!1">
    <saw:mapLayout>
    <saw:splitterLayout orientation="horizontal"/></saw:mapLayout>
    <saw:basemap sid="__OBIEE__MAPVIEW__TILE__OBIEE_NAVTEQ_SAMPLE__OBIEE_WORLD_MAP__~v0"/>
    <saw:mapWidgets>
    <saw:mapToolBar>
    <saw:panTools>
    <saw:panHand display="true"/></saw:panTools>
    <saw:zoomTools>
    <saw:zoomIn display="true"/>
    <saw:zoomOut display="true"/></saw:zoomTools>
    <saw:selectionTools>
    <saw:pointTool display="true"/></saw:selectionTools></saw:mapToolBar>
    <saw:mapInformation>
    <saw:scaleInfo display="true"/>
    <saw:overview display="true" viewState="collapsed"/></saw:mapInformation>
    <saw:mapOverlay>
    <saw:panButtons display="true"/>
    <saw:zoomSlider display="true"/></saw:mapOverlay></saw:mapWidgets>
    <saw:infoLegend display="true" viewState="collapsed"/>
    <saw:viewportInfo>
    <saw:boundingLayer layerID="l0"/>
    <saw:mapCenter x="-95.90625" y="34.3125" size="31.015625" srid="8307" zoomLevel="3" xUnitPixels="12.8" yUnitPixels="12.8"/>
    <saw:boundingBox coords="-119.34375,18.8828125,-72.546875,49.8203125"/></saw:viewportInfo>
    <saw:spatialLayers>
    <saw:spatialLayer sid="__OBIEE__MAPVIEW__LAYER__OBIEE_NAVTEQ_Sample__OBIEE_STATE__~v0" class="omv_predefined_layer" layerID="l0">
    <saw:layerLabelFormat display="true"/>
    <saw:spatials>
    <saw:columnRef columnID="cddcbd415b4c3bdfa"/></saw:spatials>
    <saw:visuals>
    <saw:visual visualID="v0" xsi:type="saw:colorScheme">
    <saw:varyFillColor binType="percentile" numBins="4">
    <saw:columnRef columnID="c95ae97ecd00f14f7"/>
    <saw:rampStyle>
    <saw:rampItem id="0">
    <saw:g class="color" fill="#fffeff"/></saw:rampItem>
    <saw:rampItem id="1">
    <saw:g class="color" fill="#eae6ec"/></saw:rampItem>
    <saw:rampItem id="2">
    <saw:g class="color" fill="#d2cfd5"/></saw:rampItem>
    <saw:rampItem id="3">
    <saw:g class="color" fill="#bcb8be"/></saw:rampItem></saw:rampStyle></saw:varyFillColor>
    <saw:g class="color"/></saw:visual></saw:visuals></saw:spatialLayer></saw:spatialLayers>
    <saw:canvasFormat width="800" height="400"/>
    <saw:mapInteraction autoCreateFormats="true"/>
    <saw:formatPanel width="218" height="513"/></saw:view></saw:views></saw:report>

    Here are few tuning tips you might want to look at.
    http://oraclemaps.blogspot.in/2010/01/mapviewer-performance-tuning-tips-part.html
    http://oraclemaps.blogspot.in/2010/01/mapviewer-performance-tuning-tips-part_14.html
    http://oraclemaps.blogspot.in/2010/02/mapviewer-performance-tuning-tips-part.html
    http://oraclemaps.blogspot.in/2010/09/mapviewer-performance-tuning-tips-part.html

  • Does anyone know how to save / preserve image maps when updating graphics?

    Hello all,
    I'm currently working on a RH7 HTML project, which I've designed to be used in support of a software application.
    Some of the application's dialogue boxes have quite complex multi-tabbed GUIs, so when it comes to describing their functionality, you often end up with a long list below the graphic image. What this means of course, is that the user is forever scrolling up and down to make reference between the GUI and the explanatory text.
    I hit upon an idea I'd used previously, whereby I created popups to multiple image map hotspots. It works like a dream and the client and users really like the concept - but there's a snag (apparently).
    Because the application is still in development. some of those GUIs are (and will continue to) change. No problem with that either - until I try and insert the updated graphic. Poof !! All my hotspots disappear . . .
    Surely I'm not alone in trying this approach and there must be some way of preserving the hotspots?
    Any suggestions?
    Bob (in a UK time zone)

    Hi there
    It sounds like you are using the standard methods of inserting an image. Don't do that!
    All you need to do in these cases is to use Windows Explorer to save the updated image using the same file name and replacing the former image. When you do this your other data will remain intact. If the new image is a different size, just right-click it inside the RoboHelp HTML editor and choose Reset Size. You also may need to tweak your hotspots if things shifted some.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • UDF to capture the source file name or the source folder for mapping

    Hi All,
    i have 2 files -  File1 from File2 from 2 different folders- single comm channel FTP (FCC). i have to pass a constant A and B respectively to a field in target structure.
    my options are -
    either create a new field in source str populating different constants and  then map to the target str
    or a udf to get the source file name or the source folder so that i can map the constant using the value mapping/FixValue mapping.
    please suggest. thanks.
    rajib

    Hi,
    please use the UDF to determine the file name. Then based on file name either pass A or B to your target field.
    The code is as given below. Just tweak the code to pass either A or B as per your requirement.
    public String G_GetFileName(Container container) throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Regards,
    Deepak.

  • How  Hash tables can be used  in PI mapping

    Hi Experts,
    I'm don't have any idea how we store the values in hash tables and how to implement them in mapping.
    In my scenario I have two fields matnum and quantity.if matnum is not null ,then we have to check whether the matnum exists in hash table and also check whether the hash table is empty or not.
    How we can do this in graphical message mapping? 
    how to store the variable matnum in a table?
    If global variables are used, how to implement in mapping.how we call the keys from hash table ?

    Divya,
    We have a similiar requirement for getting different values. Below param1 may you be matnum,param2 is quantity
    What you need to do is first declare global varaible(A), fill hash table as below(B) and retrieve(C) based on index. You can tweak code based on your requirement
    (A) Declare global variable(last icon in message mapping tool bar)
         String globlalString[] = new String[10];
    (B) Fill Hash Table
    import java.util.Hashtable;
    public void saveparam1(String[] param1,String[] param2,ResultList result,Container container){
    Hashtable htparam1 = new Hashtable();
    int Indx = 0;
    for (int i = 0 ;i < param1.length ; i++) {
      String strparam1 = param1<i>.trim();
      if (strparam1.length() > 0) {
        Object obj = htparam1.get(strparam1);
        if (obj == null){
          globlalString[Indx++] = strparam1 ;
          htparam1.put(strparam1,strparam1);
    if (Indx < globalString.length) {
      for (int i = 0;  i < param2.length ; i++) {
        String strparam2 = param2<i>.trim();
        if (strparam2.length() > 0) {
          Object obj = htparam1.get(strparam2);
          if (obj == null){
            globalString[Indx++] = strparam2 ;
            htparam1.put(strparam2,strparam2);
    result.addValue(globalString[0]); // for first value
    (C) for subsequent reading/accessing
    //pass constant whatever number is required to this function
    String retValue = "";
      int indx = Integer.parseInt(index);
      indx = indx - 1;
      if ((indx >= 0) && (indx < globalString.length)){
       retValue = globalString[indx];
    return retValue;
    Hope this helps!

  • Mapping an XML from an input element to Target

    Hi ,
    I have an XML coming in source Element as below :
    <?xml version="1.0" encoding="UTF-8"?>
    <ResponsePayload>
       <RespString><?xml version="1.0" encoding="UTF-8"?>
    <Devices>
       <Device>1</Device>
       <Name>1</Name>
    </Devices></RespString>
    </ResponsePayload>
    and I need to map it to the target where the target structure is as below .
    <?xml version="1.0" encoding="UTF-8"?>
    <Devices>
       <Device/>
       <Name/>
    </Devices>
    The entire target xml is coming in a source field  and that needs to be mapped.
    How to perform this?Can any one suggest the methods to do this ?
    Thanks
    Rajesh

    Add the libraries and Tweak as needed.. here's the gist.
    public class GetResponse extends AbstractTransformation  {
    public void transform(TransformationInput arg0, TransformationOutput arg1)
                   throws StreamTransformationException {
    String inputPayload = convertInputStreamToString(arg0.getInputPayload()
                        .getInputStream());
              String inputPayload = convertInputStreamToString(arg0.getInputPayload()
                        .getInputStream());
    String outputPayload = "";
    inputPayload = inputPayload.replaceAll("<ResponsePayload>", "");
    inputPayload = inputPayload.replaceAll("</ResponsePayload>", "");
    inputPayload = inputPayload.replaceAll("<RespString>", "");
    inputPayload = inputPayload.replaceAll("</RespString>", "");
    inputPayload = start + inputPayload + end;
                     outputPayload = inputPayload;
    try {
                   arg1.getOutputPayload().getOutputStream().write(
                             outputPayload.getBytes("UTF-8"));
              } catch (Exception exception1) {
    public String convertInputStreamToString(InputStream in) {
              StringBuffer sb = new StringBuffer();
              try {
                   InputStreamReader isr = new InputStreamReader(in);
                   Reader reader = new BufferedReader(isr);
                   int ch;
                   while ((ch = in.read()) > -1) {
                        sb.append((char) ch);
                   reader.close();
              } catch (Exception exception) {
              return sb.toString();
    Mind you the code would change if there's and empty node.
    Similarly you would also need to remove an extra version and encoding tag which you get from source.
    Edited by: AMITH GOPALAKRISHNAN on Mar 22, 2011 4:57 PM

  • Net use map drive is working with built-in admin account only

    I currently have a windows 7 PC that I use
    net use in cmd file to map drive to Windows server 2008. 
    It works if I use built-in admin account/password but I've tried another account that's in the administrator group on the server and I get errors.
    NET USE X: \\IPADD\c$\inetpub\ftproot  password /User:adminuseraccount
    NET USE X: \\IPADD\c$\inetpub\ftproot password /User:server\adminuseraccount
    After tweaking the net use command a number of ways,  the 2 following errors are what I'm getting for the most part:
    System error 1219 has occurred.
    Multiple connections to a server or shared resource by the same user, using more
     than one user name, are not allowed. Disconnect all previous connections to the
     server or shared resource and try again.
    OR
    System error 5 has occurred.
    Access is denied.
    I've looked at many searches on this but can't get this to work. 
    Also,  one thing I'm thinking of doing is changing the built-in admin name and password.  Is this a safe thing to do?
    Thanks,
    Dave

    Hi,
    Can you check this link?
    http://support.microsoft.com/kb/938120
    Thanks,
    Umesh.S.K

  • Java Mapping expert advice

    Hi all
    I am using Java mapping to replace a string with another string in my outputed xml file. the code i am using is
    package xi_test_package;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class Xi_test_class implements StreamTransformation {
          private Map param = null;
                public void setParameter (Map param) {
                      this.param = param;
                      if (param == null) {
                            this.param = new HashMap();
                public void execute(InputStream inStream, OutputStream outStream) throws StreamTransformationException{
                      try{
                            BufferedReader in = new BufferedReader(new InputStreamReader(inStream));
                            BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outStream));
                            // The pattern matches control characters
                            Pattern p = Pattern.compile("ns0:");
                            Matcher m = p.matcher("");
                            String aLine = null;
                            while((aLine = in.readLine()) != null) {
                                 m.reset(aLine);
                                 //Replaces control characters with an empty string.
                                 String result = m.replaceAll("");
                                 out.write(result);
                                 out.newLine();
                            in.close();
                            out.close();                           
                      }catch(Exception e){
                            e.printStackTrace();
    I picked this code from a different blog,This code is basically replacing "ns0" with "" .  I am now required to tweak it so that the logic is like this .
    replace all "ns0:" with "" and replace all "ns1:" with "" and replace all "ns2:" with "com:" and replace all occurenaces except the first one of "ns4" with "" and all occureance except the first one of "ns5" with "main"
    How can i tweak the code to do all of these replacements in a single go
    your expert java advice is well appricited.
    Thank you

    Try this.. I have just removed few lines related to pattern and used another piece of code here..
    let me know if any issues..
    >
    >                         BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outStream));
    >
    > >                      
    >                         String aLine = null;
    >                         int count = 0;
    >                         while((aLine = in.readLine()) != null) {
    >                            
    >                              
                                    if ( count > 0 )
    >                              out.write( aLine.replaceAll( "ns0:","" ).replaceAll("ns1:","").replaceAll("ns2:","com:").replaceAll("ns4","") );
                                   else
                                    out.write( aLine.replaceAll( "ns0:","" ).replaceAll("ns1:","").replaceAll("ns2:","com:") );
    >                              
    >                              out.newLine();
    >                              if ( aLine.indexOf( "ns4") > 0 ) count++;
    >                         }
    >

  • Stumped: Why won't DITA-OT process my Frame 9 map file?

    I'm stuck and hope someone might provide some guidance. I'm running Frame 9 on Windows XP.
    I've created a very simple map file and am trying to get it to process in the DITA OT.
    Everything appears to be set up correctly (I specify which Dita map is to be transformed...
    etc.), but when I click Transform, I get the following error message:
    "WinANT Build Error
    It appears the build process failed. Either no log file was produced or the log file stylesheet
    was not generated into the output directory.This means the process didn't complete correctly."
    It then tells me:
    -To be sure I have the Java JDK installed. (I do.)
    -Check that the Dita OT dir on the DITA tab is pointing to the correct
    location of the DITA toolkit. (It is.)
    -To deselect the Overrides on the advanced tabs ( I did.)
    -Tweak the fix resolver checkbox on the DITA OT tab (I tried.)
    Sigh.....nothing seems to work.
    Just wondered if anyone might a clue as to what's going on.
    Many thanks in advance,
    Gary

    Hi Gary...
    Note that you don't "import" files into the DITA-OT. The OT is a tool for generating output from DITA files .. you use it to create various types of deliverables from DITA files.
    Yes .. the FrameMaker DITA-OT connector plugin does seem to have fallen off the web .. I've asked around, but no one will fess up to where it's gone. I may make a plugin for this purpose .. it's very nice to have this built into Frame. You might want to look into using the DITA-FMx plugin, which provides many additional DITA authoring and publishing features as well as an OT connector. You can download the DITA-FMx trial from my website ..
    http://leximation.com/dita-fmx/
    It is possible that WinANT doesn't like FM9 DITA files, but I'm thinking that's not the case. You should try building (generating) output from the DITA samples provided in the DITA-OT using WinANT .. that will determine if the problem lies in your WinANT installation or with the FM9 DITA files.
    BTW .. the command line isn't all that hard to use. Just locate the DITA-OT folder .. it should contain a file named "startcmd.bat" .. run that file to get the shell from which to run the commands. Once the DOS shell opens up, you can enter the following to create XHTML output from your map file ..
    java -jar lib/dost.jar /i:C:/PATH/MAP.DITAMAP /outdir:C:/PATH/OUT  /transtype:xhtml
    Where "C:/PATH/MAP.DITAMAP" is the path and filename of your ditamap file, and "C:/PATH/OUT" is the path and folder where you want the output created.
    In theory, this should all work .. but as you might expect there are reasons that it may not.
    Cheers,
    ...scott

  • Mapping MIDI sounds in GB3

    I record drum tracks via my Roland V-Drums and Cakewalk/Sonar. I save them as .mid files then drag them on to my GB3 app for playback. Does anyone know how to change the instrument assignments in GB3? Not all the sounds from my drum kit are audible and some don't seem to be mapped correctly - trigger the wrong instrument. Is there a way to see/tweak the instrument sounds in GB3? Can this be done via Apple's MIDI Mgr utility? I've tried working w/ a couple of the preset GB3 drum kits(rock, pop kits) but still not sounding right. Would be great if I could create my own GarageBand drum kit that maps 1:1 w/ the instrumentation in my Roland TD-20. Any tips/suggestions? Anyone using GB3 to record V-Drums? And is there a version of GB that works w/ an old G3 iMac DV?
    Thanks!

    so wait. I can go to a web site that offers
    soundfonts(midi sounds right?) and somehow use them
    within GB?
    That's what I said. Yes.
    http://www.thehangtime.com/gb/gbfaq2.html#installsoundfonts
    http://www.thehangtime.com/gb/gbfaq2.html#usesoundfonts

  • Google Map Missing; Error Message

    Hi!
    I just published some additional pages. When I went to website, my Google Map is not functioning. I get an Error Message: The Google Maps API server rejected your request. This could be because the API key used on this site was registered for a different web site. You can generate a new key for this web site at http://code.google.com/apis/maps/.
    I suspect that this is caused by the move to Mobile Me but I'm NOT knowledgeable about writing/tweaking code. Help please!
    Thanks!

    If there's nothing in the frame then you need to delete it and redo.
    The code should look like this:
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108904 399034733320125.00044544215edb492ed88&amp;ll=38.157447,-122.136727&amp;spn=0.187 352,0.205307&amp;output=embed&amp;s=AARTsJododsXPyX-2Ae4WopCclxikLoTBQ"></iframe >
    <small>View Larger Map</small>
    Don't try to find me using this map as I have moved back to Southern CA!

  • Magazine Not Mapped in EJB's

    I have created my tables, but i am having the given error :
    java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: group33MAGAZINE is not mapped [FROM group33MAGAZINE WHERE MAGID='TeST'] i have created my Magazine file, code :
    *     Magazine.java
    *     Magazine is the main interface for the class.
    *     A magazine is a one-to-many with issue.java
    *     Magazine is a many-to-one with SubjectArea.java
    *         * MAGAZINE , ISSUE , SUBJECT AREA Workinh
    *     Revised : Stelios Philippou
    *     Date : 26 April
    package com.group33.entities;
    import javax.persistence.*;
    import java.util.*;
    @Entity
    @Table(name = "group33MAGAZINE")
    public class Magazine implements java.io.Serializable {
        private String magId;
        private String title;
        private int period;
        private int publicationDay;
        private String magDescription;
        //SUBJECT AREA CONNECTION
        private SubjectArea subjectArea;
        private int areaId;
        // MagazineSubscription connection.
        //private Set<MagazineSubscription> magazineSubscriptions = new HashSet<MagazineSubscription>();
        /*************************Magazine*************************/
        @Id
        @Column(name = "MAGID",length = 5, nullable = false)
        public String getMagId() { return magId; }
        public void setMagId(String magId) { this.magId = magId; }
        @Column(name = "TITLE", length = 50, nullable = false)
        public String getTitle() {  return title; }
        public void setTitle(String title) {  this.title = title; }
        @Column(name = "PERIOD", nullable = true)
        public int getPeriod() { return period;  }
        public void setPeriod(int period) {  this.period = period;   }
        @Column(name = "PUBLICATIONDAY", nullable = true)
        public int getPublicationDay() { return publicationDay; }
        public void setPublicationDay(int publicationDay) { this.publicationDay = publicationDay;  }
        @Column(name = "MAGDESCRIPTION", nullable = true)
        public String getMagDescription() {  return magDescription;  }
        public void setMagDescription(String magDescription) { this.magDescription = magDescription; }
         /*************************Subject Area*************************/
        // Foreging Key for SubjectArea
        @Column(name = "AREAID", nullable = false)
        public int getAreaId() { return areaId;  }
        public void setAreaId(int areaid) {  this.areaId = areaId; }
        //Delpoyemnt for one to many ussing subject Area
        @ManyToOne
        @JoinColumn(name = "AREAID", insertable = false, updatable = false)
        public SubjectArea getSubjectArea() {return subjectArea;}
        public void setSubjectArea(SubjectArea subjectArea) { this.subjectArea = subjectArea; }
         /*************************items Ordered*************************/
        // Hash Set itemsordered connection
        private Set<ItemsOrdered>itemsOrdereds = new HashSet<ItemsOrdered>();
        //Deployoing one to many for itemsordered
         @OneToMany(mappedBy = "magazine")
        public Set<ItemsOrdered> getItemsOrdered() { return itemsOrdereds;  }
        public void setItemsOrdered(Set<ItemsOrdered> itemsOrdereds) { this.itemsOrdereds = itemsOrdereds; }
         /*************************Issue*************************/
         //Hash Set Issue
        private Set<Issue> issues = new HashSet<Issue>();
        @OneToMany(mappedBy = "magazine")
        public Set<Issue> getIssues() { return issues;  }
        public void setIssues(Set<Issue> issues) { this.issues = issues; }
        // Deployement for many to one of Subscription
        //@OneToMany(mappedBy = "magazine")
        //public Set<MagazineSubscriptions> getMagazineSubscriptions() { return magazineSubscriptions;  }
        //public void setMagazineSubscriptions(Set<MagazineSubscriptions> magazineSubscriptions) { this.magazineSubscriptions = magazineSubscriptions; }
    } and my persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
      <persistence-unit name="group33">
        <jta-data-source>java:/DB2DSGROUP33</jta-data-source>
        <properties>
          <property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect"/>
          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
        </properties>
      </persistence-unit>
    </persistence>My db is created with schema group33 and group33MAGAZINE
    No matter what i enter in the search i will be unable to proceed with the searching.
    Something, somewhere is not right and i am not sure what.
    Please some pointers
    Tried various names for magazine and nothing helped

    stevoo wrote:
    Solved ... i think ill stop posting if ill be finding the solutions by myself.Fine by us. You make that sound like a bad thing. After all, no one is guaranteed an answer when they come here.
    Anyway after a lot of tweaking, it seemed that i need to deploy all entities to actually work. Yes.
    So i stripped every relation down and left just magazine. If that's what your problem demands.
    It looked like that was all it neededGood job.
    %

  • Map XML tag to an object style

    Hi everyone!
    I am not sure this is the correct place to post it, but i didn't find any "tagging" department of the forums.
    I do import some XML into ID document.
    Text nodes of my XML are imported properly, and i can map any tag of XML to one of the paragraph or table styles.
    But, when i import any images (or another ID documents) with <... href="..." />, how can i map that tag to an object style?
    ///////////// It would be very helpful for example when i'm going to set the stroke of 1pt to all of inline images of text frame.
    Please any feedback would be helpful.
    Alex.

    I will try to give an example, just to give a kick start ........... you need little bit of tweaking to meet your actual requirement:
    suppose you have an xml element "tag" having an attribute "@href" with object style name defined as  it's value. 
    <tag href="object_style_name">
    "object_style_name" is a object style and should exist in your document. To map the tag with the corresponding object style value you can use XMLRules in JS:
    //NOTE: NOT TESTED, BUT SHOULD WORK
    #include "glue code.jsx"
    main();
    function main(){
    if (app.documents.length != 0){
    var myDoc = app.activeDocument;
    var myRuleSet = new Array (
    new findObjAttribute("//*[@href]")
    with(myDoc){
    var elements = xmlElements;
    __processRuleSet(elements.item(0), myRuleSet);
    else{
    alert("You have no document open!");
    exit();
    function findObjAttribute(XPATH){
    this.name = "findObjAttribute";
    this.xpath = XPATH;
    this.apply = function(myElement, myRuleProcessor)
    //Just to check whether the collect element is selected
    var elmName=myElement.markupTag.name;
    var styleName=myElement.xmlAttributes.itemByName("href").value;
    with(myElement){
    try {
    applyObjectStyle(myDoc.objectStyles.item(styleName), true);
         } catch(e){};
    return true;
    HTH,
    Pankaj Chaturvedi

  • How to use offline map for windows store app using c# and xaml

    Hi friends,
    I want to integrate offline map in my windows store app but I am not able to achieve that.
    Below is my requirement:
    When a user wants to go somewhere where she/he doesn't want to use wi-fi or mobile data but wants to use map to assist her/him to roam around. For this I want to give an option to download the map for that region/area before leaving for that place and there
    she/he can use map even in offline.
    Is it possible that I can achieve this using Bing maps?
    If yes then tell me the processes to follow.
    If no then can I achieve this using "Here" or by using any other API or by tweaking any way?
    Note: I am showing maps in case of online and user can search for directions or any places in that. I am using Bing maps for that.
    Thanks,
    S.Sandeep

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
    http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

Maybe you are looking for

  • Problem while calling RFC function module in java

    Hi all com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  GWHOST=<system.ab.ydydy.yyyd.com>, GWSERV=sapgw00, ASHOST=<system.ab.ydydy.yyyd.com>, SYSNR=00 LOCATION    CPIC (TCP/IP) on local host ERROR

  • F110  Problem  in Ecc6.0

    I am running the Automatic Payment Program (f110 t.code). After runnig the proporsal i am receiving two document numbers in log but in 4.6c only one document number is generated in log. its very urgent issue Regards Babu

  • How to make texts of label as red highlighted?

    Hi Experts, Now i created a text field for displaying some words, i ticked the check box 'Bright' of the propertites of this label. And finally it is displayed as blue hightlighted . But now i want it to be highlighted as red color, how could i imple

  • Inconsistent Datatypes in comples insert statement

    I am modifying a script to be able to do sql queries on Oracle database, I am having some problems with this statement. My YiderResult table is as follows: DROP TABLE YIDERRESULT CASCADE CONSTRAINTS; CREATE TABLE YIDERRESULT MKEY NUMBER(22) NOT NULL,

  • ACE Exception during conversation

    After upgrading ACE module from A2(3.1) to A2(3.2) we started getting complaints about the ablity to upload a file in one of our applications. We are able to recreate the problem and noticed that when there is a failure, the ACE sends a TCP RST in bo