How to get the substring of the field in the rules file

Hello

I use the Hyperion Essbase 11.1.2.3 version and try to build the size of the area. I have the Code area and description of the region in the source file. But the Description of the region is preceded with another character. Example - "AXX - Asia", "NXX - Netherland" and etc. I don't want to exclude "AXX -", "NXX" - during the generation of dimension. Please could you let me know how to remove these characters through rule files. I want to just generate rule with region Code file and description of the region without these extra characters.

Source file:

Region code | Region / / Desc

AP | AXX - Asia

NL | NXX - Netherland

Build of contour should be:

-AP (Alias: Asia)

-NL (Alias: Netherland)

Thank you

Michel K

Deker suggestion (using find and replace) is useful if you have a list of possible prefixes and that you are happy to have to update the rules file every time that this list is growing. I'm not a fan of this, personally.

If the prefix length is always three characters then you must separate the first six characters of the code (the three characters and then space, hyphen, space). This creates two fields of the original; you ignore the first one and then use the second as an alias.

To split a field into a State of charge, see: splitting fields

Tags: Business Intelligence

Similar Questions

  • How to get the mov files to play on ms media player

    Hello how is what we all mov files by our cameras when we're doing videos, that I can up load on youtube very well, but my Media Player will not play. Please don't tell me about codecs unless you include the link to get the mov files. Thank you

    Right-click on the mov file and point to open with, click Windows movie maker,

    Rotation is on the top / center and Save is on the top / right.

  • How to get the bak files?

    Original title: Bak files.

    How to retrieve the bak files. They were e-mail messages that went somehow in the trash. I got the files, but they have bak next to them. Nothing I do will open to them. Thank you

    Microsoft MSDN can help, try this link.

    http://social.msdn.Microsoft.com/search/en-us?query=opening%20BAK%20Files&emptyWatermark=true&AC=5

  • How to get the gif file hosted by using the Http connection?

    Hello

    I have an application that downloads animation gif from a server by using the http connection. Here is the code I use to download the image.

    try {
    
                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);            httpConnection.setRequestMethod(HttpConnection.GET);
    
                if (httpConnection.getResponseCode() == HttpConnection.HTTP_OK) {                DataInputStream dS = httpConnection.openDataInputStream();
    
                    byte[] data = new byte[dS.available()];                dS.read(data);
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(data, 0,data.length);
    
                } else {                throw new Exception("ResponseCode:" + httpConnection.getResponseCode());            }        } catch (Exception e) {                        gifImage = null;            e.printStackTrace();        }
    

    the problem with this code is, when the gif file is 1175 bytes above, it does not load the gif.

    example:-If the gif on the server is 1500 bytes, this code retrieves only 1175 bytes.

    I think that the rest of the bytes are sent in a different package. But how to get them.

    can someone please provide a code for buffering the inputstream?

    any help is appreciated.

    Dieye

    Hmm, nobody seems to know how to do, it seems. Here's how I did it.

                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);
                httpConnection.setRequestMethod(HttpConnection.GET);
    
                int responseCode = httpConnection.getResponseCode();
                if (responseCode == HttpConnection.HTTP_OK) {
                    inputStream = httpConnection.openInputStream();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    
                    byte[] buffer = new byte[256];
                    int len = 0, imageSize = 0;
    
                    while (-1 != (len = inputStream.read(buffer))) {
                        byteArrayOutputStream.write(buffer);
                        imageSize += len;
                    }
    
                    byteArrayOutputStream.flush();
                    byte[] imageData = byteArrayOutputStream.toByteArray();
                    byteArrayOutputStream.close();
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(imageData, 0, imageSize);
    
  • How to get the mobileprovision file for air for ios

    I created a small application. I want to publish this .ipa file when I try to publish the ide flash asking the .moblieprovision file. How can I get this file. Is it need to BUY.

    That may have changed with CS6, but in the past, you had to buy an Apple Developer iOS development plan (they have a Mac development as well).  Visit the website of apple to http://developer.apple.com .

  • How to get the current file name and & or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • How to get the CSV file, RTF model output DATA

    Hi, Jorge

    Thanks for your help.

    as in the link you gave the model RTF can have the type of output CSV DATA but in the preview, I see only html, powerpoint, pdf, html, excel.

    How to see the result in SCV, DATA format using my RTF model do I have to do a specific design for these outputs.

    Thnaks in advance

    This is because it has been preconfigured with these outputs.
    Edit and add types of outputs more simply go to:

    1. change your report
    2. click on 'Display list' (upper right corner)
    3. click on the "output formats" (corresponding to your page layout) and
    4. check the formats (add) additional output you want your report to have.

    see you soon

    Jorge

  • How to get the jar file without knowing his name and any class on the inside?

    Hello, everyone!

    I would like to know if there is a way to get a reference programmatically in the original container without knowing his name and any class it contains. I mean by "initial pot" the pot that was called in the prompt, like this:
    java -jar jarfile.jar
    or in another way, in a graphics system. To be honest, what I really want is to get a reference to the manifest of the jar, but I know that if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also be useful. So, is there a way to do this?

    Thank you.

    Marcos

    Ah, so you want to find the calling class and get its source code.

    I managed to get the class calling on occasion, but this is probably a somewhat fragile solution. You must extend SecurityManager because getClassContext() is a protected method.

        private static class CallerFetch extends SecurityManager {
    
            public Class getCallerClass() {
                return getClassContext()[3];
            }
        }
        private static CallerFetch callerFetch =
                new CallerFetch();
    
        /**
         * Find the class of the code which called the
         * method that invokes this method.
         * @return The class of the caller's caller
         */
        public static Class getCallerClass() {
            return callerFetch.getCallerClass();
        }
    
  • How to get the $HTML_TOP file / apps

    Guy

    In fact, we work on the i-recruitment Module and must change in the form of CV according to my customer need, to change, go file resumes from as object directory mentioned to obtain and update the summary format.

    So kindly help me how to join this directory because HTML_TOP is not mentioned in the batch file that auto move in particular folder.

    Thank you

    Hello

    So kindly help me how to join this directory because HTML_TOP is not mentioned in the batch file that auto move in particular folder.

    You are not sure if I understand you correctly, but what are you referring to the $OA_HTML directory? If so, connect to the source file the application as a user applmgr env, node-level application and issue of "echo $OA_HTML" or "echo $COMMON_TOP/html.

    Thank you
    Hussein

  • How to get the external file linking in as3

    I want to open files outside different format (*.mp4, *.wmv, *.pdf, * .ppt,.doc etc.) on the click event, I try that for *.wmv but I received an error.

    --------------------------------------------------------------------------------

    package {}

    to import flash.display.SimpleButton;

    import flash.events.MouseEvent;

    import flash.net.navigateToURL;

    import flash.net.URLRequest;

    public class button click extends SimpleButton {}

    public void clickbutton() {}

    this.addEventListener (MouseEvent.CLICK, clickF);

    }

    private void clickF(e:MouseEvent):void {}

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    videoPlayer.attachNetStream (ns);

    var listener: Object = new Object();

    listener.onMetaData = function(evt:Object):void {};

    NS.client = listener;

    NS. Play ("video_test.wmv");

    }

    }

    }

    --------------------------------------------------------------------------------

    Please tell me the correct code

    you don't need the swf file.

    you create a projection file (.exe).

    If you know users will have default settings to open the types of files and programs, you can use fscommand to open them (as long as they files are located in a subdirectory of fscommand).

    you will need to use an executable support, too: http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy

  • How to get the indesign files subfolder

    Hi experts

    How can I tell the script what I get is the subfolders but not sub sub folder or sub sub sub... folder files.

    my script like this:

    function GetFiles (theFolder) {}
    var = [] files,
    fileList = theFolder.getFiles (),
    i, file;

    for (i = 0; i < fileList.length; i ++) {}
    file = list of files [i];
    If {(instanceof file folder)
    files = files.concat (GetFiles (file));
    }
    ElseIf (file instanceof file & & file.name.match(/\.indd$/i)) {}
    files.push (file);
    }
    }

    return files;
    }

    How can it change?

    Thank you

    Respect of

    John

    Hi John,.

    Try this code...

    The Final PDF files stored in the desktop / folder PDF

    //======================================================================================
    var gScriptName = "Batch export INDD-files to PDF"; // Name of the script
    var gScriptVersion = "1.0"; // Version
    var gSet = GetSettings();
    var flag=0,files = [];
    var fileLs=[];
    CreateDialog();
    //===================================== FUNCTIONS  ======================================
    function CreateDialog() {
    var pdfPresetsList =app.pdfExportPresets.everyItem().name;
    var win = new Window("dialog", gScriptName + " - " + gScriptVersion);
    win.p = win.add("panel", undefined, "");
    win.p.alignChildren = "right";
    win.p.alignment = "fill";
    
    win.p.g = win.p.add("group");
    win.p.g.st = win.p.g.add("statictext", undefined, "PDF-presets:");
    win.p.g.ddl = win.p.g.add("dropdownlist", undefined, pdfPresetsList);
    win.p.g.ddl.selection = gSet.selectedPdfPresetIndex;
    win.p.g.ddl.preferredSize.width = 220;
    win.buttons = win.add("group");
    win.buttons.orientation = "row";
    win.buttons.alignment = "center";
    win.buttons.ok = win.buttons.add("button", undefined, "OK", {name:"ok" });
    win.buttons.cancel = win.buttons.add("button", undefined, "Cancel", {name:"cancel"});
    var showDialog = win.show();
    if (showDialog == 1) {
      gSet.selectedPdfPresetIndex = win.p.g.ddl.selection.index;
      app.insertLabel("Kas_" + gScriptName + gScriptVersion, gSet.toSource());
      Main();
    }
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function Main() {
    var folder = Folder.selectDialog("Select a folder with InDesign files to export");
    if (folder == null) exit();
    var files = GetFiles(folder);
    var pdfFolder = new Folder(Folder.desktop+ "/" + "PDF");
    if (files.length == 0) {
      alert("No files to open.", gScriptName + " - " + gScriptVersion);
      exit();
    }
    if(!pdfFolder.exists)pdfFolder.create();
    //VerifyFolder(pdfFolder);
    var pdfPresets =app.pdfExportPresets.everyItem().getElements();
    var selectedPdfPreset = pdfPresets[gSet.selectedPdfPresetIndex];
    var count = 1;
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    // Progress bar -----------------------------------------------------------------------------------
    var progressWin = new Window ("window", gScriptName + " - " + gScriptVersion);
    var progressBar = progressWin.add ("progressbar", [12, 12, 350, 24], 0, files.length);
    var progressTxt = progressWin.add("statictext", undefined, "Starting exporting files");
    progressTxt.bounds = [0, 0, 340, 20];
    progressTxt.alignment = "left";
    progressWin.show();
    // Progress bar -----------------------------------------------------------------------------------
    for (var i = 0; i < files.length; i++) {
      var currentFile = files[i];
    
      try {
       var doc = app.open(currentFile, false);
       var docName = doc.name;
       // Progress bar -----------------------------------------------------------------------------------
       progressBar.value = count;
       progressTxt.text = String("Exporting file - " + docName + " (" + count + " of " + files.length + ")");
       // Progress bar -----------------------------------------------------------------------------------
       var file = new File(pdfFolder + "/" + GetFileName(docName) + ".pdf");
       if (file.exists) {
        var increment = 1;
        while (file.exists) {
         file = new File(pdfFolder + "/" + GetFileName(docName) + "(" + increment++ + ").pdf");
        }
       }
    
       doc.exportFile(ExportFormat.pdfType, file, false, selectedPdfPreset);
       doc.close(SaveOptions.NO);
       count++;
      }
      catch(e) {}
    }
    // Progress bar -----------------------------------------------------------------------------------
    progressWin.close();
    // Progress bar -----------------------------------------------------------------------------------
    alert("Done.", gScriptName + " - " + gScriptVersion);
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function VerifyFolder(folder) {
    if (!folder.exists) {
      var folder = new Folder(folder.absoluteURI);
      var array1 = new Array();
      while (!folder.exists) {
       array1.push(folder);
       folder = new Folder(folder.path);
      }
      var array2 = new Array();
      while (array1.length > 0) {
       folder = array1.pop();
       if (folder.create()) {
        array2.push(folder);
       } else {
        while (array2.length > 0) {
         array2.pop.remove();
        }
        throw "Folder creation failed";
       }
      }
    }
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function GetFiles(theFolder) {
        var file,filesub;
            fileList = theFolder.getFiles();
        for (i = 0; i < fileList.length; i++) {
            file = fileList[i];
            if(file.name==".DS_Store") continue;
            if (file instanceof Folder) {
              fileLs = file.getFiles();
              alert(fileLs.length);
                for (j = 0; j < fileLs.length; j++) {
                    filesub = fileLs[j];
                    if (filesub instanceof File && filesub.name.match(/\.indd$/i)) {
                       files.push(filesub);
                    }
                }
            }
          else if (file instanceof File && file.name.match(/\.indd$/i)) {
           files.push(file);
          }
        }
        return files;
        }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function GetFileName(fileName) {
    var string = "";
    var result = fileName.lastIndexOf(".");
    if (result == -1) {
      string = fileName;
    }
    else {
      string = fileName.substr(0, result);
    }
    return string;
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function GetSettings() {
    var set = eval(app.extractLabel("Kas_" + gScriptName + gScriptVersion));
    if (set == undefined) {
      set = { selectedPdfPresetIndex : 0 };
    }
    return set;
    }
    
  • Lightroom for mobile: how to get the DNG file

    Hello

    Does anyone know how to download a file DNG from iPhone to PC?

    Thank you

    Lightroom Mobile synchronizes with a desktop version of Lightroom.

    When shooting with the camera in Lightroom, the images are synchronized on your Adobe account:

    www.Lightroom.adobe.com

    When you open a catalog on a Mac/PC, you can synchronize only one catalog. To do this, turn on sync:

    Now your images will be transferred to your computer.

  • How to get the log file for the .sql file?

    Friends,

    OS: RHEL AS 3
    DB: 9iR2

    I have a file as sql...
    @/u02/scripts/olback.sql
    exit;
    the olback.sql is to have the user manage backup scripts.
    I saved the code above as weeklybkp.sql
    I have weeklybkp.sh that I call the sql above.
    When I type the olback.sql in the sqlplus manually... I can able to see the result.
    now after the automation... I have to see the output of the script above in a log file.
    How can I save the output of the script above in a log file?

    Thank you

    Slight change in your .sql file.
    coil /u02/weeklybkp.log
    ............ (Here begins your code)
    ............
    ............ (Here ends your code)
    spool off

  • How to get the rule metric count value into the FMS for the use of the dashboard?

    Hello

    In the FMS, I can see the results of rule firings in the FxV on the left side under end user-> FxV-> FxV Hit filters, but I'm not finding the same on the right under the data tab panel.

    I wish I could view 503 errror detected by a rule on the detectred FxV or errors of the FxM.

    Is this feasible?

    Thank you

    "mark".

    Try to do the following: Navigate to the dashboard which has the metric you want to and then open the right panel and create the new dashboard, then choose to base it on the current dashboard, it should give you access to data that was used for the original dashboard.

    Golan

  • How to get the values of the shape of the object in the form of process field?

    Hello

    I created the resource object and it has the shape of the object that are associated with him. When the user self praying for this user RO add information in the form object field ho can I get these values as a process?

    How to get the values of the shape of the object in the form of process field?

    Hello

    If you want to map the form field Number in the form of process field go process definition - Data Flow Mapping tab you can add the field map.

    Thank you
    Patricia

Maybe you are looking for

  • My iMovie is 10.1.2. This is the latest version?

    My iMovie is 10.1.2. This is the latest version? I came across the term iMovie 11? Is this the last? I want to upgrade to the last. And how to upgrade? I can't find the function of upgrade to iMovie of Apple Store page. And my Mac - OS X, El Capitan,

  • How to check if can device is busy to write or read

    Hi, I'm using NI USB 8472 low speed CAN and I want to check if the device is used. because if I send a frame to the device CAN I have a continuous loop, sending another frame and I want to know who I'm not write or read my continuous loop at the same

  • Main monitor together

    I'm on a laptop with a nVidia GeForce 9400 M G video card, running a 16.1 "laptop screen and a secondary 17" display. Drivers are up to date as much as possible for video cards with Vista and my system compatibility. Right now my identities of monito

  • Mass storage device USB are most recognized

    Hello! I use Cavalry 1 TB drive external HARD for a year now. It was working fine until what a week ago it stopped working all of a sudden. I can see the lights are on on the device, I can hear the disc rotation, but my computer will not recognize it

  • Failure of the Activation of Windows 8 and 8.1: 0xC004C003 error Code

    I recently updated my window preloaded 8 to 8.1. However, after the update, it accepts not my old window key 8 and asks me to activate with a product key. Here is the error code: 0xC004C003 My DELL XPS came with a preloaded copy of window 8 and yes t