WebApp Custom Fields with liquid

With the liquid rendering engine tags in webapps have changed.

For example, in the layout of the list I could view the name of the Web application element by using the following tag: {tag_name_nolink. with liquid I use:{{name}}

But for custom fields webapp, what is the equivalent liquid?

Example:

I have a tag called "reserved". I can output the use of tag: {tag_Reserved by}. With the liquid how would display the same tag?

Am I missing something?

Lynda

Words Mario to see what is available, not only on the web apps but to access a custom field because it has a name that can be spaces etc you do as follow:

{{it. ["My custom field"]}} is how you get a custom fields data.

Tags: Business Catalyst

Similar Questions

  • Síntax liquid for webapps fields with spaces

    Silly question I am stock with.

    How we make in a video collection called a field named as 'Youtube Id' {{video.items. ["YouTube Id'] | JSON}} does not work...

    Thank you

    Hi, Machinette

    While using the code {{this.video.items [0].}} ["YouTube Id'] | JSON}} you access the array element, so that everything will work fine, however if you want to display all items from webapp 'Youtube Id' field then the best option is to use the for loop.

    Example: {module_webapps id = "1223" filter = "all" collection model = "webcall" = ""} / / I have collected all the data of webapp id 123 to collection webcall

    This webapp now have the name of the 'Number of tickets' field (with spaces).

    To display all the data in the 'Number of tickets' field, we can run a forloop as below

    {% for items in webcall.items %}

    {{Items. ["Ticket number"]}}

    {% endfor %}

    This will display all the items in the "Ticket number" field.

    I also created a test page: test of liquid

  • Question view screen with custom fields

    I've developed a class that extends the scope and Implements DrawStyle. The field contains a bitmap with text drawn on the left of the it... nothing too complicated. I made focasable, has erased layout and drawFocus, painting, etc., but I'm having a Visual anomaly.

    On my screen (no title), I added a LabelField (non-active), and then a BitmapField (non-Focus), followed by a number of my custom fields. When the first screen, everything looks great. My first custom control has focus and is drawn as such.

    The problem occurs when I scroll through the custom control 3rd to 4th (causing the screen scroll), the 2nd custom control appears twice, the 3rd is missing and the 4th has the focus. There are also some white background that starts to show through (my controls are all black and is so the bottom of the screen and other controls).

    Of course, I'm having some trouble of painting, but it is certainly related to scrolling.

    What methods should be overritten in a custom control to ensure the scrolling will work properly?

    Which must be defined in the screen?

    1. prepare your screen unscrollable as:

    Super (NO_VERTICAL_SCROLL);

    2 use a VerticalFieldManager to add all of your components.

    Make sure verticalManager Scrollable and set its size and background color.

    Something like:

            mainManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)
            {
                //setting background color
                protected void paintBackground(Graphics graphics)
                {
                    graphics.setBackgroundColor(0x00000000);
                    graphics.clear();
                    super.paint(graphics);
                }
                //setting its height and width
                protected void sublayout( int maxWidth, int maxHeight )
                {
                    int width = Display.getWidth();
                    int height = Display.getHeight();
                    super.sublayout( width, height);
                    setExtent( width, height);
                }
            };
    

    3. now add this to your screen.

    Now your screen does not scroll and you will not get the white background at the end.

    Let me know if you have any questions.

    Concerning

    Bika

  • Need help with Custom Field Layout - getting wirer height value

    In the BB Simulator, I get a strange value placed in in my field layout() method custom. The width is 320, which is correct, but the height is 1073741823 and it takes 240 or less. In this test, my custom field is the only field in the Manager, so I expect to 240.

    I tried two different simulators - BB curve and the 8800. I use JDE 4.5.0 in Eclipse 3.4.1. This is the code for my method of layout:

    Protected Sub layout (int width, int height) {}
    s long = getStyle().
    If ((s & USE_ALL_WIDTH)! = USE_ALL_WIDTH) {}
    width = Math.min (width, getPreferredWidth());
    }
    If ((s & USE_ALL_HEIGHT)! = USE_ALL_HEIGHT) {}
    height = Math.min (height, getPreferredHeight());
    }
    setExtent (width, height);
    model.setExtent (width, height);
    Model.Scroll (0, 0);
    }

    I expect the value of the screen height, or less, if the domain is configured correctly.

    I'm upgrading my custom field in a VerticalField Manager with the following attributes:

    Super (VerticalFieldManager.USE_ALL_WIDTH
    | VerticalFieldManager.USE_ALL_HEIGHT
    | VerticalFieldManager.FIELD_HCENTER | VerticalFieldManager.FIELD_VCENTER);

    Is this a bug in the Simulator, or I understand the API correctly? Is there a way to 'reset' the Simulator - I tried to get out of Eclipse and restart Windows, but I always get the same value.

    Thank you!

    Mark

    A VerticalFieldManager comes, I think, with default VERTICAL_SCROLL.  If you do not want to scroll through this particular Manager, add VerticalFieldManager.NO_VERTICAL_SCROLL to your forests of style and it will be laid out with only the height and the actual width.

    Also, since you setExtent() by yourself, USE_ALL_HEIGHT and USE_ALL_WIDTH are redundant, I think.

    Hope that helps,

    Arkady.

  • Access to element webApp with liquid category

    When you go to the date of a WebApp with liquids and using collections, there no value 'category' although I've assigned a category to this element. Can I access it somehow?

    Category in the list view is not exposed. This has always been the case, even liquid before.

  • Is there access to CRM custom fields in a LIQUID?

    Is there access to CRM custom fields in a LIQUID?

    Not yet: CRM extended fields API v3

  • Create a virtual report machine include: Pool of resources with custom fields

    Hello

    I would like to create a VM report that includes the name of the virtual host computer and Discription, as well as the virtual machine Resource Pool belongs too.

    I would also report to query for custom fields, provide the names, values, and to give it in a format that works with export-csv.

    I have a start on the script and it included as an attachment.

    How should I go about adding custom fieldsvalues?

    How can I add the name of the Resource Pool of the report?

    Thank you in advanced for your help.

    Tim

    The problem with the CustomFields, is that I don't know how they are defined on a guest.

    It's a problem when you want to make an Export-Csv thereafter. The cmdlet can handle variable-length items in the table very well.

    That's why I put 1 CustomField in 1 rank.

    $report = @()
    Get-ResourcePool | %{
         $rpName = $_.Name
         $_ | Get-VM | %{
              $vmName = $_.Name
              $_.CustomFields | %{
                   $report += New-Object PSObject -Property @{
                        ResPool = $rpName
                        VM = $vmName
                        CustomName = $_.Key
                        CustomValue = $_.Value
                   }
              }
         }
    }
    $report | Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture
    

    BTW, the Export-Csv cmdlet is a standard cmdlet. Has nothing to do with Dmitri.

    Note that the script in this format requires PowerShell v2 RTM

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Fill a field with the results of the other (sort and add custom text)

    I have a PDF form with many fields popup asking 'Yes', 'Maybe' or 'no '. I need a way to collect the answers and sorting, all the 'yes' first of all, that all the 'maybe', all the 'no '. When I need after that sort of response of three, is put in a 'Results' field with the container of the ToolTips for each popup and the ability to add a "BOLD" text, between three sorted responses.

    I have found some javascript in the forum here to collect data from field only. It seems to be easy to modify if you have several fields to collect/sorting/extract.

    Assistance or management to do will be appreciated.

    Thank you!

    Assuming that you have 50 menus named A1, A2... A50 and each drop-down list has three elements (Yes, maybe, no), you could do something like:

    Initialize object to contain the info of the answer

    var oResponse = {}

    'Yes': [],.

    "Maybe": [],.

    ['No':]

    };

    var i, f;

    Browse fields (A1, A2... A50)

    for (i = 1; i<= 50;="" i="" +="1)">

    Get a reference to the current field

    f = getField ("A" + i);

    Add ToolTip text of the current field to the corresponding table in the response object

    oResponse [f.valueAsString] .push (f.userName);

    }

    Generate the output string

    aOutput var = [];

    If (oResponse ['yes'] .length > 0) aOutput.push ("It's the priority YES\r" + oResponse ["Yes"] .join ("\r"));

    If (oResponse ["Maybe"] .length > 0) aOutput.push ("It's the priority MAYBE\r" + oResponse ["Maybe"] .join ("\r"));

    If (oResponse ['No'] .length > 0) aOutput.push ("It's the priority NO\r" + oResponse ["No"] .join ("\r"));

    Enter the results

    getField("Results").value = aOutput.join("\r\r");

  • Helps with the syntax of the workflow for the custom field

    I created a custom field called 'qualified Date '. Our current workflow is at work,

    (PRE ("< SalesStage > '") <>[< SalesStage >]) AND (PRE ("< SalesStage >") = 'Lead')

    The goal is that whenever the opportunity is taken from the stage of lead, it is called.
    However, I don't want the full qualified date when a lead is moved to Closed/Lost.

    Any suggestions on how to change this workflow to make that happen.

    We have a similar workflow, and we use a slight variation of what has suggested Shilei.
    PRE ("< SalesStage > '") <>[< SalesStage >] AND PRE ("< SalesStage >") = 'Lead' AND FieldValue ("< SalesStage > '") <>' closed/lost '.

    Good luck
    Thom

  • drawFocus, drawHighlightRegion &amp; XYRect is equivalent to a white rectangle in a custom field?

    It's one of those days where I should have stayed at home.

    Why the following sets a rectangle white when the false boolean value on?

    In other words, when it put there at the point, I get the highlight of rectangle of color TYellow as expected, when there is no discussion on the custom field (a class that extends the field); a white rectangle is drawn.

    I don't want to take anything either when there is no accent, which is equal to the value Boolean false.

    protected void drawFocus(Graphics graphics, boolean on) {
      paint(graphics);
      if (on) {
        XYRect rect = new XYRect();
        getFocusRect(rect);
        drawHighlightRegion(graphics, HIGHLIGHT_FOCUS, on, 0, 0, w, h);
             int prevColor = graphics.getColor();
         graphics.setColor(Colors.TYellow);
         graphics.drawRect(x, y, w, h);
         graphics.setColor(prevColor);
      }
    }
    

    Good or bad, I solved the problem by following these steps:

    1. My rectangle of drawing in paint with the previous color.
    2. Adding a call to invalidate in the onUnfocus method:
    protected void onUnfocus() {
      invalidate();
    }
    

    If there is a better, I'll be first in line.

  • Background color of the custom field

    Hello

    I create a custom field that is as shown in the attached display a bar graph.

    I don't want to change the background color of the field of another color. I tried to overridding method paintBackground of the field as shown below:

    protected void paintBackground(Graphics arg0) {
            arg0.setColor(Color.DARKGRAY);
            super.paintBackground(arg0);
        }
    

    but it seems to have no effect. Could someone kindly help me with this. Thanks in advance.

    Kind regards

    S.A.Norton Stanley

    Try this...

    Create a class that extends the scope and implements DrawStyle

    and override its Paint method... to set the background color

    Draw the shape you want with the graphics object and either fill the area or set the background color.

    THX

    Rabi Ray

  • Question regarding setExtent and getPreferredWidth for the custom field

    I am trying to understand the difference between getPreferredWidth and setExtent, which relate to the width of a custom field.

    I create a field that may be greater than the width of the screen. The field is made up of cells (for example columns and lines or cells, such as a table). The cells contain text, shapes, lines, color, etc. When I display the field I only paint the visible columns on the screen and allow the user to use the trackball to accomplish the columns out of the screen.

    At present, getPreferredWidth returns the total width of the field without all the empty columns, is longer than the width of the screen. I use the same value in setExtent for width. GetPreferredWidth must return the size of the field that is painted on the screen - the total width less the width of the columns out of the screen? I have the same question about setExtent - width either in total, longer than the screen width or the width of the part of the field that is painted on the screen?

    If I use the width of what is painted on the screen or the other of these methods, then the width changes when the user scrolls through the field. As the user scrolls, I calculate the number of columns will agree to a width of the screen and paint these columns. Is it a problem to have the PreferredWidth and the setExtent change width? I read that setExtent is called only when the Manager sets this field, so that the changes will not be recognized.

    It seems to work in two ways in a few simple tests, but I was just curious as the value of width that is right.

    Thank you!

    Mark

    When a field has changed in a way that requires the update of the screen (for example, after scrolling offset changes), simply call invalidate() from this area. That will eventually lead to paint (Graphics) for the field. At this point, you return the update field. (If only part of a field - as a single cell - needs to be updated, there invalidate() versions that accept arguments where, for efficiency, you can limit the update for just this part.)

    If I understand your needs, you can achieve the effect desired in the paint method. You can use the current dimensions of the field, the cutting of the graphics area, and your internal roll compensates to decide what to paint and what to delete. Let your custom field leave white space where you decide of doesn't make is not part of a cell. There is no need to change the scope of the field.

    If you go about it by changing the dimensions of the field, and then you ask the system to play much more work he has to do. If the custom field is the only field on the screen, it won't make much difference in the behavior (although there may be performance). With more than one field, it can be weird effects. For example, suppose that your custom field is one of several fields in a HorizontalFieldManager and you change the field width. When the HorizontalFieldManager recalculates its own layout, it will change the horizontal position of the fields to the right. The effect on the user, I think, would be really confusing: as the custom field parade, parties to the right of the screen could bounce left and right as the changed width field. I can't imagine that's what you want.

    Here's another way to think about this: absent some bit of style, your custom field would prefer be exactly wide and high enough to show all without scrolling. So the width and height would be based on adding the appropriate cell widths and heights, regardless of what actually is on the display. (It's also a long time that you do not have something fanciful.) If the optimum height is a function of the width available - as with sheathed on the line of text - you would implement this logic in the layout method. You then have no use for autonomous preferred width and height).

  • Two sliders in the custom field definition

    Hi guys,.

    First of all, I want to thank all those who helped me to this day. This forum has been essential for blackberry dev work I do, and I would be screwed without you guys. That being said, I'm having a problem. I install a custom like this text entry field.

    (1) creates a vertical field Manager, assigned a background and resized image with setExtent(). (works fine)

    (2) created a new type of field and inserted in the vertical field Manager to make native look (almost works)

    The problem I have is that two sliders are appearing. Cursor #2 is dynamically updated as it should be, but the #1 cursor seems to be a "flawed slider. Please see the image below for details.

    The custom field is defined using the following code. If I remove the custom field, or cursors comes, so I am positive that it is the source of the problem.

        public class JustifiedEditField extends HorizontalFieldManager implements FieldChangeListener {
            BasicEditField ef;
    
            public JustifiedEditField(long style) {
                super(USE_ALL_WIDTH);
                ef = new BasicEditField(style) {
    
                    protected void onDisplay() {
                        setPosition(10, 17);
                        update(0);
                        //invalidate();
                    }
    
                    protected void update(int d) {
                        super.update(d);
                        setPosition(10, 17);
                        //invalidate();
                    }
    
                    protected void paint(Graphics graphics) {
                        graphics.setColor(Color.WHITE);
                        getFocusRect(new XYRect());
                        drawFocus(graphics, true);
                        super.paint(graphics);
                    }
    
                    protected void onUnfocus() {
                        invalidate();
                    }
    
                    protected void onFocus(int direction) {
                        invalidate();
                    }
    
                    /**
                     * Intercepts ESCAPE key.
                     * @see net.rim.device.api.ui.component.TextField#keyChar(char,int,int)
                     */
                    protected boolean keyChar(char ch, int status, int time) {
                        switch(ch) {
                            case Characters.ESCAPE:
                                // Clear keyword.
                                if(super.getTextLength() > 0)
                                {
                                    setText("");
                                    return true;
                                }
                        }
                        return super.keyChar(ch, status, time);
                    }
                };
                add(ef);
            }
    
            protected void sublayout(int width, int height) {
                super.sublayout(width, height);
                setExtent(width, 57);
            }
    
            public BasicEditField getEditField() {
                return ef;
            }
    
            public String getText() {
                return ef.getText();
            }
    
            public void setText(String value) {
                ef.setText(value);
                invalidate();
            }
    
            public void setChangeListener(FieldChangeListener changer ){
                ef.setChangeListener(changer);
            }
    
            public void fieldChanged(Field field, int context) {
                invalidate();
            }
        }
    

    I am totally stuck on this issue, any help would be really appreciated. TIA!

    I came up with an alternative solution. It turns out that I can use a transparent border to set the offsets to where the edit field must be located within the input Manager; thus eliminating the need to use setPosition.

  • Problem in designing a custom field for the display of paragraph

    Hello

    I need to develop a custom field that is supposed to act as a RichTextField with the additional of the hyperlink feature as seen in the web pages. I have a few paragraphs of text with an id associated with each of them. A paragraph may have link to another paragraph. I think that the hyperlink is actually like a button.

    My screen will consist of a single paragraph. If any hyperlink (id) in this paragraph is preesed then the screen reloads with another paragraph (id in a hurry).

    My problem is to develop a custom field for the display of this paragraph.

    Point: several lines of text without interruption. Some of the text may be bold, italic. a text can be the hyperlink.

    Now I'm stuck. I have no ideas how I can start with. Can someone give me please suggestions as to how I can start with?

    Thanks in advance

    Bika

    I have a different Suggestion.

    If you are using an ActiveRichTextField, you get two things:

    (1) the ability to shape a field using different fonts:

    Comment - formatting text in a RichTextField
    Article number: DB-00124
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

    (2) the ability to create "links" automatically using string models

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    Using models of string, I think you'd be able to create ' hot-link in your text, which the run Menu item was able to process you want.

    Just an idea.  Hope this works for you.

  • Part of the cursor remains in the custom field

    Hello, guys!

    I have a problem.

    In the custom field that extends EditField, I want to draw in the text and the image and draw an appropriate in the cursor position. Then, we thought it would only calculate in advance of the police and the width of the image in the paint method to display the text and image and to the similar development and I tried. However, the cursor drawing is wrong. When the cursor moves from right to left, a part of the slider to the position immediately before the rest.

    Y at - it a good solution?

    JDE component package: 4.6.0

    I solved by myself.

    'FocusChangeListener' is mounted with EditField. And "invalidate()" has been called in the method "focusChanged().

    It became a great result for me.

    Thank you.

Maybe you are looking for

  • Firefox will keep clean time

    For these past few weeks, I noticed that 34 FF tends to display the weather.At first I thought that it would be the cmos battery so I put in a new, but the problem persists. As a matter of fact, today I had to reset the time twice.Any idea of what th

  • Windows does not start on my Satellite P300

    Hi all I have a problem with my Toshiba Satellite P300-22R.When I start the PC, the normal start screen comes (Toshiba Leading Innovation) I can also launch the BIOS and all the stuff. But now nothing works again! I'm still in this screen, Windows wi

  • issue of lion, mavericks, yosemite?

    Hello I have a question. My sister gave me her laptop macbook and has clear all on it. So he returned to the 2010 Macbook software.  I noticed that he had no FaceTime, iBook, Photo, Photo Booth etc. So I had to download OS X El Capitan. And now I hav

  • Allen Bradley driver

    I have not so far had the chance to create a pilot for a PLC.  I know few things about the PLC architecture, but what I read on the web.  First of all, I would like to know is the similar to the 488 protocol driver interface.  Can I simply write "str

  • . File MSI installation file open multiple browsers

    My University purchased the software and created an MSI file to install it on windows machines.  This file has been used successfully several times by students to install the program.  However, there is a student who has a problem.  When he clicks on