Space in a field

Hello

We have two fields in a line < FIELD1 > < FIELD2 >

Field - 1: If a particular condition is satisfied, it returns a string of other nothing.

So, when the condition is not satisfactory, we get a space instead of field-1. For this reason, we get an extra space at the beginning of the line that we don't need.

Tried to implement the rule of removewhitespace, but since it is only useful when the field is empty, we don't get the desired result.

Is there a way for FIELD-1 return nothing so that the space before the FIELD-2 can be eliminated.

Thank you.

I guess that scenario has not yet been fully described. I'm going to guess that what you really have is a text box (or TRM with the Assembly paragraph field) with two built-in field references. When you fail to map one of the fields, the embedded reference is not printed, but regardless of the space it occupied is still present.

When a field rule runs and returns a blank value, the assumption is that there is nothing to assign to the field, because the field data were already empty. However, you have a built-in reference field occupying space - probably you there - see an 'X' and the space remains when no data is mapped to the field because actually no formatting occurred.

So what you have to do is get the field assigned a value first and then you can return an empty value. Which will be considered as a change to the data and therefore saved.

Suppose that your domain is named "ABC" in the script where you decide that no value is to be returned, you must do something like this:

else / * value * /.

SETFLD ("1", "ABC")

RETURN("")

end

As mentioned, affecting the field first real value will be considered to be a change. Then when the script returns a value that does not correspond to data that is already present, which is considered to be a change as well and in the end, you have an empty assignment in embedded reference.

Tags: Oracle Applications

Similar Questions

  • space between the fields in a page

    Hello

    I have about 5 fields to a custom page, one under the other. But I can't understand how to create the space between these fields vertically?

    Any suggestions are appreciated.

    Thank you

    create a new element and set its type as spacer

    hope this helps

    Prasanna-

  • Space personalized between fields?

    Is there a way to put a custom amount of space between two labels on a screen that would be smaller (height wise) than to make an addition (new RichTextField()); between the labels?  I want to put a space between my labels, but it gives me too much space.  I would like to maybe 2/3 of the height of richtextfield a vacuum.

    There are two possibilities.

    You can create your own layout manager. This article shows you how to:
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

    for easier tasks, I use a SpacerField. It is my own extension of the field class, NON_FOCUSABLE and defines its scope to the desired height and width.

  • How to prune the spaces in a field and run with lov query

    Hello

    I have a customized OPS page and one of the field's element is of type message entered lov. When the user enters the values for this field lov will validate and it will survey exception if the invalid value is entered in the field.

    Suppose that lov is to have values like 100,200,300,400,500.

    Suppose that user enters the value 100 with spaces for towing, so I want to trim left and right and validate the value after all ready for the values of lov. How can we approach for the same thing?

    Concerning

    Sree

    Hi Mary,

    Using formValue for the validation of the LOV? If Yes, then I guess that's the problem.

    If not, try setting the property to disable the LOV Validation point. This will disable your LOV validation. But in turn, you can check that your trim code works correctly. Recursive debug from here to share your results.

    Kind regards

    Zahid

  • Prune only to left and spaces of a field

    Is it possible to cut only the start and end of a field spaces?  I have a name field, which I shared later so I can generate simply by using the first name, using the rawValue.split method.  This way I can generate an e-mail that says: Dear John, instead of Dear John Smith , drawing from this field.  The problem I encountered there that the person typing the name sometimes leave space a prefix in front of the name, so the electronic message is generated without a name (so it says 'Expensive' Any help is greatly appreciated.


    -Very well, thank you for the review to null, your event is good, so good.

    Although, if you want to change the value NULL returned, here are the changes to return nothing instead:

    function trim (strValue) {}

    var str = new String (strValue);

    return strValue! is nothing? Str.Replace(/(^\s*) | () \s*$)/g,"") : "";

    }

    Enjoy!

  • Simple? How do you want 'INSERT' function to return the empty space after a field?

    All,

    I just have a PET of brain? I have a situation where I have a field that must return a single space, with a value that has a space before and after it.

    Example:

    In the text == > I'm < field > go to the office. <-notice no space between the two am, < field > and will

    I mean if set to FALSE, then "I am * not * going to the office."
    If true, then "I go to the office."

    If it is true, I am just RETURN(""); <-this returns a blank space


    If FALSE, I tried:

    RET = 'no '.
    RETURN ("" & ret & "");

    This property returns "I am notgoing to UNRWA. <-don't notice any empty space after the 'no '?

    I tried

    RET = 'no ';
    RET2 = ("" & ret);
    RETURN (Insert (ret2, 3, ""));

    Always the same result. What is strange, that is, if I do a RETURN (Insert (ret2, * 2 *, "")); then he comes back "I'm not tgoing to office" <-note the space between the "o" and the "t"?

    Ideas?

    I forgot about it. Depending on which version you use, DAL actually supported a function that will make the hard space for you, like this:

    Val = FLOAT (160) & 'not' & CHAR (160)
    Return (Val)

  • Carve out a space of input fields

    I find that some of my script logic fails when an end user happens to drop some spaces in an optional entry field. In other words, if the user presses the SPACEBAR so that an input field has the slider, and then continues, she is no longer a null field and my scripts waiting for data to be there (but data are white spaces).

    What is the easiest way to square the white space (or eliminate a string which is nothing other than space) of all the entry fields? Thanks for reading.

    Simple way is to add the following to the output javascript code: event of the input field:

    this.rawValue

    (= this.rawValue.replace(/^\s+|\s+$/g,""); "

    Whenever a user fills in and leaving the field he'll cut spaces (you can see it happen on the screen).

  • SQLPlus deletes spaces right in field clob on insert

    Hello

    I use SQL most 11.1.0.6.0 to run a script that performs insertions orders in an Oracle 10g db. The problem I've noticed is when you insert a string of code in a clob field contains a few lines with spaces such as:

    .. divergencepersistante void Foo ()--trailing space here
    .... {
    .. .int myVar = 1;
    ... - empty line with trailing spaces
    .. .myVar += 1
    ....}

    The string is inserted in the table loses those empty spaces in the blank lines and becomes:

    .. divergencepersistante void Foo () - trailing space is lost
    .... {
    .. .int myVar = 1;
    -empty line without spaces
    .. .myVar += 1
    ....}

    Although it makes no difference for useful data, it is quite frustrating because it is at the origin of data differ from the original and fails some tests.

    All I could find was MIS TRIMSPOOL/TRIMOUT OFF that don't change not no matter what, anyone have any other ideas?

    Hello

    Welcome to the forum!

    SQL * Plus seems to strip the spaces of the input lines before sending them to the compiler.
    You can change your INSERT statements to use more citations, so that no line ends with spaces?

    I utiliserai.s to indicate the spaces in this example.
    Looks like you're curreently doing somehting like this:

    INSERT INTO table_x (txt) VALUES
    (
    '....public void myMethod()....
    ....{
    ........int myVar = 1;
    ........
    ........myVar+=1
    ....}
    ');
    

    You can start a new quote at the end of each line, like this?

    INSERT INTO table_x (txt) VALUES
    (
    '....public void myMethod()....'.||.'
    ....{'.||.'
    ........int myVar = 1;'.||.'
    ........'.||.'
    ........myVar+=1'.||.'
    ....}'.||.'
    ');
    
  • creating spaces between the fields

    Hi all

    In my quest to develop a GUI formScreen, I came up with this:

    It seems a bit awkward without spacing between each box...

    Can someone tell me please how to insert just small horizontal spacing between each of the boxes?

    Thank you

    Dan

    If you check 6.0 documentation on field, you'll find setPadding(), setMargin() so that all kinds of getPadding... and getMargin... methods.  Even if the documentation indicates that it is available since 6.0.0 actually there - sans-papiers but work - since probably 4.0.0 (when XYEdges became available).  I know that they work in point 4.2.1.  If you look at the source code for this article

    Implement advanced buttons, fields and managers

    which says that it applies to BlackBerry 4.2.0 and later, you'll find setPadding and setMargin it.

    In fact, student (not just help!) as the code source is extremely useful for any developer serious user of BlackBerry interface. The code isn't perfect (Finally, whose code is?), but it is much further down the way to create a friendly USER interface than what I've seen personally. You have setExtent (frequently seen here in the forums) and setVirtualExtent (very rarely used and well explained necessary to create scrolling handlers) examples, any kind of use of layoutChild and setPositionChild (the main building blocks for the creation of highly personalized facilities) etc - you name it, they have it.

  • How to shrink the space between the field name and the field?

    Untitled-1.png

    I'm lucky today. I finally found a method to solve this problem. The end result is like the image below.

    Here is the CSS code that I use.

    It will be useful. I'm not a programmer. So it's really nice discovery... the time of bulb

  • Good way to create spaces between fields

    Hello, please am new Blackberry development and I would like to have appropriate spaces between my fields using the horizontal and vertical fields Manager. I've seen suggestions on the use of setMargin() setPadding() or the creation of a field class custom spacer. All of these suggestions will work but don't know there will be consistency when the screen oriented. so I was wondering if there is another way to achieve this spaces that will take into account the orientation of the screen. Advice or links to articles/tutorials will make. Thank you

    Welcome on the support forums.

    http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Field.html#setPadding(int, int, int, int)
    is the easiest way, it makes the largest field without changing its content.

    http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Field.html#setMargin(int, int, int, int) is more or less the same, he sets those values for the available to managers without changing the 'size' of the field.

    Finally, you can create a fully customized layout:
    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...
    It sounds complicated, but once you got it done other much easier layout issues.
    do not mix a provision with a preset manager, extend the class manager directly.

  • Truncation of space in the text field

    I am facing problems with spaces in the field, what is the function that we can use to truncate the spaces after the value. How to stop the space in the NOSE. I used the TRIM function also, but this market... can you please help...

    Can you check if this code works in your case

  • Simple if / choose block - I need spaces between fields

    Should be easy enough, but I just don't get it - perhaps someone can help you.
    I have to be able to see the first name Middle_Name name unless there is no middle name, then First_Name Last_Name. I can't just out the 3 fields in a row because it always turns an empty field in a space, leaving me with First_Name Last_Name (2 places).

    Here is the code that I use, you may have a better sugguestion. Problem is this First_NameLast_Name or First_NameMiddle_NameLast_Name code under outputs (without space)
    <? choose:? >
    <? When: MIDDLE_NAME! ='' ' ? >
    <? First_name? >
    <? MIDDLE_NAME? >
    <? Last_name? >
    <? end when? >
    <? otherwise:? >
    <? First_name? >
    <? Last_name? >
    <? end otherwise? >
    <? end to choose? >

    Thank you.
    PS - BI Publisher 11.1.1.5 using Word 2007

    You can use the concat function to include a space between the first name, last name etc.

    or try -essentially include a space between the fields.

    Hope that helps.
    Bipuser

  • hit the tab opens another line of address rather than go to the subject field

    With the last update to Thunderbird, I can not tab directly from the field address within the scope of the topic. Hit the tab opens another line of address to be removed, then tab will move to the scope of the topic. I hope someone solves this problem quickly.

    In my version 31.2.0
    It depends on how MANY fields are automatically inserted.

    So if I have 3 set as default, but have used an email address, tab scrolls the (two) other TO and in THE fields and then go to topic.

    The rest to THE fields may not necessarily appear if the content by separating the divider was raised to provide more space to strike. So it might appear as though the creation of a new FIELD (which is normally when you press the enter/return key), but it's actually only to already available in THE fields.

    To check this:
    Open a new message of Scripture.
    Lower the separator bar to reveal header space, all the fields to display and also a few extra empty lines.
    How many auto fields appear?

    Place the cursor at the top of the page to and use Tab to move.
    the move of the tab should move from FIELD to the fall of choice FOR down, then next field. When the last FIELD was used, tab should go to the question, it should not go to an empty field AND create a new FIELD.

  • Spaces in the domain LDAP OR

    Hello

    I am running SSL VPN on a asa 5520 (V8.2.5) with LDAP authentication and everything works fine but now the AD people changed its name in groups and they added a "" "in white" in one of the fields when I set up the group I get an error.

    for example:

    It works:

    map-value memberOf CN = VPN_SSL_ABC, OU = external, OU = XXX, DC = ext, DC = local ABCPolicy

    but this is not:

    map-value memberOf CN = VPN_SSL_ABC, OU = external group, OU = XXX, DC = ext, DC = local ABCPolicy

    Is it possible to insert a space in the field of the OU?

    Thanks in advance

    Giovanni

    Yes, just put the quotes for the attribute memberOf as follows:

    map-value memberOf "CN = VPN_SSL_ABC, OU = external group, OU = XXX, DC = ext, DC = local" ABCPolicy

Maybe you are looking for