How to create a substitution string

Hello

How do I create a chain of replacement so it can point to a url or the page.

for example I want to place all my images in a page named www.page.com/images/

So how can I create the replacement string so then I can just put the #APP_IMG #IMAGE_NAME.jpg to call it that.

I tried to create a chain of substitution as this #APP_IMG # that points to www.page.com/images/, but its does not work.

Any ideas?

Ruben

You cannot create chains of substitution of #SOMETHING #. However, you are on the right track. If you change the definition of application (where you can change the name or the analysis of schema), you will see a 20 ' Substitution static channels "that you can set. The key is how refer you to them. You must use the & STRING. syntax and don't FORGET not the trailing dot. In an application I'm working on, we have a chain called IMAGE_BASE. Currently, it is set on/myapp /. In my model, I reference images / javascript / js like this:

&IMAGE_BASE.some_css.css

When the page is rendered, the reference will look like this:

/myapp/some_css.css

Note that you can also set the value of this string of substitution of #WORKSPACE_IMAGES #, which is nice because you can choose where to deploy your images. I really need to blog about this a while...

Tyler Muth
http://tylermuth.WordPress.com
[Oracle security application: development of secure database and Middleware environments | http://sn.im/aos.book]

Tags: Database

Similar Questions

  • Can I create a substitution string?

    Hello!

    Can I create a new chain of substitution? Y at - it all the substitution string that it can used?
    Anyone can say more about the substitution string?


    Kind regards
    Priscila Britto

    HI -.

    You can create chains of substitution under shared components / definition.

    Good luck.

  • How to create an array of strings listing by program?

    How to create an array of strings listing by program? I'm trying to programmatically create an Enum containing a list of tests to run, based on the selection of the user.

    My code ranging from control on LAVA has a demo VI to convert an array of strings of an enum.

    Tone

  • How to create the string of JSON using QVariantMap array?

    Hi all

    How to create sub string of Json using QVariantMap array?

    {
        "Test1": [
            {
                "dataTest1": "0000",
                "dataTest2": 1412,
                "dataTest3": "",
                "dataTest4": "0000",
            }
        ],
        "Test2": {
            "data1": 1412008,
            "data2": "0000",
            "data3": "A",
            "data4": "0000",
        }
    }
    

    Waiting for your answer please reply me as soon as possible.

    JSON array is QVariantList

    JSON object is QVariantMap

    then create a QVariantLsit and insert your QVariantMaps

  • How to create an XML Document and convert it into a string? (send through wireless network)

    Hello

    I am now able to post data to a web server by using Blackberry JDE (medical use).

    Now, instead of display the plain text, I would like to send an XML file.

    I am able to do it using this code on a 'normal ': Java application

    import java. IO;
    Org.w3c.dom import. *;
    Import javax.xml.parsers. *;
    Javax.xml.transform import. *;
    Javax.xml.transform.dom import. *;
    Javax.xml.transform.stream import. *;

    public class {XML
    Public Shared Sub main (String [] args) {}
    try {}
    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Doc document = builder.newDocument ();
               
    Root element = doc.createElement ("root");
    doc.appendChild (root);
               
    Child element = doc.createElement ("child");
    child.setAttribute ("name", "value");
    root.appendChild (child);

    Add a text element to the child
    Text = doc.createTextNode ("text");
    child.appendChild (text);

    implement a transformer
    TRANSFAC TransformerFactory = TransformerFactory.newInstance ();
    Transformer trans = transfac.newTransformer ();
    trans.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, 'yes');
    trans.setOutputProperty (OutputKeys.INDENT, 'yes');

    create the string of the xml tree
    StringWriter sw = new StringWriter();
    StreamResult result = new StreamResult (sw);
    DOMSource source = new DOMSource (doc);
    TRANS. Transform (source, result);
    String xmlString = sw.toString ();
    System.out.println (xmlString);
    } catch (Exception e) {}
    make error management
    }
    }
    }

    However, on the Blackberry JDE, many functions is not recognized.

    I saw the class DocumentBuilderFactory (net.rim.device.api.xml.parsers.DocumentBuilderFactory), the DocumentBuilder (net.rim.device.api.xml.parsers.DocumentBuilder) class and the interface of Document in the docs of Blackberry Java (4.2.1).

    So, I'm able to create an XML Document... but I don't know how to convert to a string?

    How can I do this? The TransformerFactory class doesn't seem to exist... and I did not find an alternative yet.

    At the present time, here is the code I use to publish data:

    String coord = lat + ";" + LNG; post data
    con = (HttpConnection) Connector.open (url); Open the connection URL
    con.setRequestMethod (HttpConnection.POST); POST method
    con.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
    out = con.openOutputStream (); display the results in a stream
    out. Write (Coord.GetBytes ());

    responseCode = con.getResponseCode (); Send data and receive the response code
    If (responseCode! = HttpConnection.HTTP_OK) {}
    System.out.println ("HTTP STATUS CODE: 404"); error
    } else {}
    System.out.println ("HTTP STATUS CODE: 200"); successful
    }
    If (con! = null) con. Close; close the connection to the URL

    As mentioned, rather than display a string with a delimiter between each value (there will be a lot more than two values finally), I would like to publish an XML.  It will be more "elegant" and easier to parse by my code on the web server.

    Maybe I don't have to convert it to a string?

    In other words, how can I convert my XML Document to send it via the wireless network?

    Thanks for your help!

    TransformerFactory does not exist in the BlackBerry API.  As far as I can tell, you need to implement yourself.  You can do this by walking the DOM and the output of channels.  They have an example of the market of the DOM in the XMLDemo, but they view as fields, you just need to write strings.

  • How to create a channel for a PXI-6509

    I'm working on a program to fight the PXI-6509. The only area that I have problems with creates the string by calling the function DAQmxCreateDOChan. I get no errors during the first DAQmxCreateTask, but get an error when you try to create the channel. Exactly how to create the channel name? In MAX, I have named the "DIO" device, do not know if it matters. Any help would be greatly appreciated.

    Hi schelgr,

    Have you had a glance examples DAQmx in finder example found in help > find examples.  In input and output equipment > DAQmx there is a lot of examples that should be able to help with this query.

    Concerning

  • How to create a label as in the picture

    Hi all

    How to create a tag like the one below.

    That's what I did today.

    Container {
                        layout: DockLayout {
    
                        }
                        preferredWidth: displayInfo.pixelSize.width/2
                        preferredHeight: 110
    
                        Label {
                            id:firstname_label
                            text:"First Name:"
                            textStyle.color: Color.create("#000000")
                            textStyle.fontSize: FontSize.Large
                            horizontalAlignment: HorizontalAlignment.Right
                            verticalAlignment: VerticalAlignment.Center
    
                        }
                        ImageView {
                            minWidth: firstname_label.text.width()
                            imageSource:"asset:///images/border.png"
                        }
                    }
    

    How do I get the width of a string in QML. Think that it is not the width setting in the imageView.

    I use this custom control to create borders around something (e.g., labels not only)...

    Container {
        topPadding: 30
        leftPadding: 30
        rightPadding: 30
        bottomPadding: 30
    
        background: mybackground.imagePaint
    
        horizontalAlignment: HorizontalAlignment.Center
    
        attachedObjects: [
            ImagePaintDefinition {
                id: mybackground
                imageSource: "asset:///images/border1.amd"
            }
        ]
    }
    

  • Location-how to create an interface to the .rrh file using jde?

    Hello

    I created my own files .rrh and .rrc, but when I build my project in jde 4.5 there is no corresponding interface is created for the file .rrh... Please tell me how to create the interface using jde and where it is located?

    create an interface named NAMEResResource (with NAME = your name of the module).
    create a long BUNDLE_ID and a string BUNDLE_NAME and set some values (random).
    You can now add resource strings, with a random value as all are managed by the internal interface of the JDE.

    You must create the entry of resources in the HR Manager/DRR files and copy the name of the entry in your own interface.

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • How to create dynamic ObjectChoiceField?

    Hello friends,

    I want to create the search section for what I want to create dynamic choiceField. Tell me how to create that. I want 4 field of choice.

    Select the Continent-> Africa, Asia, Europe, America, South America, Antarctica, Oceania
    Select the country
    Select the region
    SELECT City

    here if I select Asia I want to show in the field of choice throughout Asia of County County, after that, if I sect Asia County I want to show all the area of that County and if I show a region that show the whole of the region. Than please tell how I do?

    It doesn't matter what Web service?

    How I do?

    you found NPES because obj_country is null.

    I think you can try with the recording of information in text files.

    String str_continent[]= new String[]{"Select Continent","Africa", "Asia", "Europe"," North America", "south America"," Antarctica","Oceania"};
    final ObjectChoiceField obj_Country=new ObjectChoiceField();
            obj_Country.setLabel("Countries");
    final ObjectChoiceField obj_continent=new                                                                                         ObjectChoiceField("Continent",str_continent){
             protected void fieldChangeNotify(int context) {
            if(getSelectedIndex()==2)
                    {
    InputStream in = getClass().getResourceAsStream("Asia.txt");
    String[] asianCountries =new  String[0];
    try {
    asianCountries = StringUtilities.stringToWords(new String(IOUtilities.streamToBytes(in)));
    } catch (IOException e) {
    e.printStackTrace();
    }
    
                        obj_Country.setChoices(asianCountries);}
    super.fieldChangeNotify(context);
                }
            };
    
            add(obj_continent);
            add(obj_Country);
    
  • BlackBerry smartphone how to create a URL in the Blackberry program

    Hello

    Can someone tell me how to create a link URL in Blackberry, which opens a web page after having been on it?

    navigationClick()
    {
      if(mylabel.isfocus())
       {
    //To open browser
           String url = "www.google.com";
           BrowserSession browser = Browser.getDefaultSession();
           browser.displayPage(url);
    
    //to push second screen
    
    UiApplication.getuiApplication(pushscreen(new SecondScreen()));
       }
    }
    
  • Substitution strings are not read

    Hello

    I'm working on APEX 4.2.2 and Oracle 11 g.

    We ask a how to download attachments of a report query. We use a v ('APP_ALIAS') substitution string to the procedure, which is not playing. Is there a limitation that a procedure should be called from process only so the substitution string would be read? Please help me with this.

    Thank you

    Shoaib

    2812672 wrote:

    The procedure is called from a report interactive/Classic Apex, who only considers current Apex session? They are read flat when I call the same procedure of a process page apex.

    How is it used in the process of the page? It's obviously in a context of APEX session: the procedure is called by a block anonymous PL/SQL run during show page APEX or accept treatment.

    When the user clicks on the link in the report, it's the browser that calls the procedure, not APEX. Look at the URL of the link: it does not use the APEX "f?" p =... "signature of procedure; It is not an APEX session ID; It is not executed in a context of APEX.

  • Adding a substitution string without exporting the entire application

    Hello

    I was wondering if it was possible to add a substitution string to an application on a different environment without having to export the entire application.

    I use export by component a lot, but now I have a small update a page and a substitution string (specified in the Application definition).

    I have to get this update to another copy of our application, without the substitution of the entire application.

    With a full export, I noticed that the wwv_flow_api.create_flow function is called that has a lot of parameters and substitution strings:

    p_substitution_string_18 = > 'TEST ',.

    p_substitution_value_18 = > ' < img src = "" & test.png "title ="test"/ >".

    There is another function that can add them separately? Or I can insert them with a statement on a table?

    Hope someone can shine some light on this case, so I know how to export more different components.

    Thank you


    Robert

    PS: I use apex 4.2 with 11g, but I don't think that what really matters on this case.

    The substitution variables are found in the wwv_flows table and run from 01-20, you have to identify you with the user/schema of APEX_040200...

    Select substitution_string_01, substitution_value_01 from wwv_flows where id = 101;

    Update wwv_flows set substitution_value_01 = 'new value' where id = 104;

    Kind regards

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?

    For example, a border: a black line with a width of 1, then a transparent line with a width of 5. Inside, it's the content pane.

    In JavaSE, there seems to be for the JFrame paintComponent() method to realize the effect.

    I can't see what you're trying to do now: it's a little trickier. You need stage.initStyle (StageStyle.TRANSPARENT), and I think you have to imitate the transparent part of the border by the presence of a second vessel inside the root container, properly positioned.

    Something like:

    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    
    public class CustomBorderExample extends Application {
    
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
    
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
    
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final Button closeButton = new Button("Close");
        mainContainer.getChildren().add(closeButton);
        closeButton.setOnAction(new EventHandler() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
          }
        });
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      }
    
      public static void main(String[] args) {
      launch(args);
      }
    }
    
  • How to create a Playlist file empty on Mac?

    Hello everyone, I am working on a music player script, I was able to play a file via the default drive when we double-click on a file. The problem is that I have no control over the player, so to "stop" a file I could play a 'silent' mp3, one with 1 second of silence inside for example. I threw the idea since I had to distribute this file with the script silent.mp3. A better option is to play a 'playlist', playlist files are text only, I could create an empty playlist file on the fly...

    so, the question is, what is the extension of list of default playback on a mac? and how to create one on the Mac?

    in windows, the default player is Windows Media Player, the default playlist file extension is *.wpl.

    Here are the contents of an empty playlist

    <?wpl version="1.0"?>
    <smil>
        <head>
            <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.7601.18150"/>
            <meta name="ItemCount" content="0"/>
            <title>empyPlaylist</title>
        </head>
    </smil>
    


    Here's the script, so far Windows only, at least to stop the currently playing file.

    //  script.name = musicPlayer_Windows.jsx;
    //  script.needs = I need to create an Empty Playlist File for the Mac, that will play on the default music player when executed
    
    
    // carlos canto, 10/12/2014
    
    
    var w = new Window('dialog', 'Music Player');
    
    
    var btnFile = w.add('button', undefined, 'Select an *.mp3 file to play...');
    var lblSong = w.add('edittext', undefined, '');
    lblSong.characters = 30;
    
    
    var btnPlay = w.add('button', undefined, 'Play');
    var btnStop = w.add('button', undefined, 'Stop');
    var btnClose = w.add('button', undefined, 'Close');
    
    
    btnPlay.enabled = btnStop.enabled = false;
    
    
    var emptyPlaylist = getEmptyPlaylist ();
    
    
    btnFile.onClick = function () {
        var file = File.openDialog ("Select File to Play...", '*.mp3', false);
        lblSong.text = file.displayName;
        lblSong.file = file;
        btnPlay.enabled = btnStop.enabled = true;
    }
    btnPlay.onClick = function () {
        lblSong.file.execute();
        $.sleep (300);
        BridgeTalk.bringToFront('estoolkit');
    }
    btnStop.onClick = function () {
        emptyPlaylist.execute();
        $.sleep (300);
        BridgeTalk.bringToFront('estoolkit');
    }
    btnClose.onClick = function () {
        w.close();
    }
    w.show();
    
    
    
    
    // this function creates an Empty Playlist file (Windows) on the fly, this file will be used to "stop" a playing file
    // I need a similar function for Mac
    function getEmptyPlaylist () {
        var desk = Folder.desktop;
        var f = new File(desk+'/emptyPlaylist.wpl');
        if (!f.exists) {
            var s_emptyPlaylist = (new String("<?wpl version=\"1.0\"?>\n<smil>\n    <head>\n        <meta name=\"Generator\" content=\"Microsoft Windows Media Player -- 12.0.7601.18150\"/>\n        <meta name=\"ItemCount\" content=\"0\"/>\n        <title>empyPlaylist</title>\n    </head>\n</smil>\n"));
            f.encoding = 'utf-8';
            f.open('w');
            f.write(eval(s_emptyPlaylist));
    
    
            f.close();
        }
        return f;
    }
       
    
    
    

    Thanks in advance

    Carlos

    iTunes wouldn't let me export an empty selection.

    The following three lines is the mentioned track .m3u playlist above:

    #EXTM3U

    #EXTINF:179, Aquarella - Georges Arvanitas Trio

    / Users/dirk/music/iTunes/iTunes Music/Media/Georges Arvanitas Trio/Jazz loves Paris By Night - organ Piano & Hammond/02 Aquarella.m4a

    If I run this file from playlist, iTunes abandons the current track and lets the list.

    If I remove the lines 2 + 3, iTunes ignores the reading list.

    If I change line 3 to a bogus file reference, iTunes ignores the reading list.

    BTW, iTunes sees the "repeat" setting - so if the track is a second of silence, it will be repeated forever.

Maybe you are looking for

  • installation ID

    Hello my name is ranjith two days back my laptop was damaged so I alreay taken windows 8 back up.so I reinstall the same .after times the installation it asks installation id .or do you get installation id.i buyed the laptop in shopping.so online ple

  • Need drivers XP for Satellite A210-15J

    Hello I just bought Satellite A210-15J laptop and I have Windows Vista in it. I want to have Win XP, but I can't find the XP drivers for this model. It would be great if someone could help me. Thank you!

  • TCPIP VISA is difficult to establish

    I am writing a program to set and play an instrument of iTC Oxford via interface ehthernet. The problem is, once I stopped the program and run it again, I get a time-out error.  Each time, I try several times Run/Stop to make it work again. In the pr

  • (Redirected) Laptop Dell 3000

    My laptop Dell 2543 won't post, only flashes blue screen clear. Please help J.

  • No program Association in links direct mail. Error returned

    I use windows 7 and live mail.  When I open e-mail and try to click on a link to a web site, an error message is returned. "This file has no program associated with it for performing this action.  Please install a program or, if such is already insta