Invert the values of Text wrap

Hi all

I wonder if there any way to reverse offset of text to film, for ex shift left will shift to the right and vice versa for all blocks of text in the document by a script

I tried several times but I only got a code to change the offset values, but I need to reverse the trend

Thank you

Hi Susan,

Try this code,

var myTxtWrapPoints = app.selection [0].textWrapPreferences.textWrapOffset;

App.Selection [0].textWrapPreferences.textWrapOffset = [myTxtWrapPoints [3], myTxtWrapPoints [2], myTxtWrapPoints [0], myTxtWrapPoints [1]];

Tags: InDesign

Similar Questions

  • I've created a form that uses the value field text to fill the text of another field.  Does not take into account changes

    I've created a form that uses the value field text to fill the text of another field.  However, if I need to change the text, the second field does not update this change.  Instead of reset the form each time, is the Javascript code to update the fields if they have been modified?

    For example I Text1 and Text2.

    When I type in Hello in Text1 I see Hello in Text2.

    Later, if I decide to change to Goodbye Text1, Text2 remains Hello.

    The shape of the hoe can recognize this change?

    Thank you

    Edit: I think I have misunderstood the situation.

    If you want to both fields have the same value, just to give them the same name.

  • Align the value apex_item.text

    How can I align the value apex_item.text on the right?
    The default value is left.
    I tried to set the alignment of the column as rigth without success.

    Use the p_attributes for apex_item.text parameter to create a style attribute:

    style="text-align: right;"
    
  • changing the value of text within a column of a PivotTable

    Hi people,

    I get great help from this forum and I am very frequently. This time, I have a question about Tables, how to manipulate fields in a table using JavaScript. The requirement is as follows, I have a Table (100rows x 3columns), and few of them are hidden in the page layout. The first column contains the values of text such as sequential numbers, (the first column is visual index, 1, 2, 3... 100). now, I'm trying to write a script that replaces or substitutes the first column values in the text areas of space. Can you guys help out me if you do a script? or give me some resources where I can manipulate the fields from the table using JavaScript?

    Thanks in advance.

    Hello

    It seems that the table is static and will always three rows during execution. In other words, the user cannot add more lines. If this correct?

    You need not resolve the nodes in this case, because you are referencing fields and specific lines.

    Because the script is located in the square, which is in the same container as the table, the following would erase the contents of the fields in the second column:

    Table1.Row1[1].TextField3.rawValue = null;
    

    Your script accesses an object in the second row called Cell1. This seems to be a text object has no property .rawValue If you want to change the value at run time, you will need to change this to a TextField object.

    In addition, looks like that is not an object in the second row (Row1 [1]) called "Cell1". It seems that the first object is unnamed. This will also cause the script to fail. When debugging, it is useful to use the JavaScript Console to see the (control + J) errors when previewing the form or in Acrobat.

    Who help me?

    Niall

  • How to stop a sound and emit a sound signal according to the values of text?

    I have a text field and a button. When the button is clicked it displays 100 or 0 (vice versa). The value in the text field is saved and when the user opens the application upwards, the text field displays the last number (100 or 0). This is the code:

    import flash.events.MouseEvent;
    import flash.media.SoundChannel;
    import flash.ui.Mouse;
    
    var saveDataObject:SharedObject;
    var currentScore:Number; 
    options_mc.sound_btn.addEventListener(MouseEvent.CLICK, mute);
    
    
    init();
    function mute(event:MouseEvent)
    {
    
    if(currentScore == 100)
    {
    currentScore = 0
    options_mc.onoff_txt.text = String(currentScore);
    
    }
    else if(currentScore == 0)
    {
    currentScore = 100
    options_mc.onoff_txt.text = String(currentScore);
    }
    saveData();
    }
    function init():void
    {
    
    saveDataObject = SharedObject.getLocal("test");
    currentScore = 100;
    
    
    
    
    if (saveDataObject.data.savedScore == null)
    {
    
        saveDataObject.data.savedScore = currentScore;
    }
    else
    {
    
        loadData();
    }
    
    
    }
    
    function saveData():void
    {
    saveDataObject.data.savedScore = currentScore;
    
    saveDataObject.flush();
    
    }
    
    function loadData():void
    {
        currentScore = saveDataObject.data.savedScore;
    
        if (options_mc.onoff_txt) options_mc.onoff_txt.text=String(currentScore);
    }
    

    On a different layer in the timeline panel, I have a sound that lights up. I want the sound turns on if the value of the onoff_txt is equal to 100, and I want the sound to stop playing or not playing when the value is 0.

    The code failing that I came up with is the following: CheckSound();

    function CheckSound():void
    {
    if(options_mc.onoff_txt.text == "100")
    {
    tchannel
    = theme.play(0,9999);
    }
    else if(options_mc.onoff_txt.text == "0")
    {
    tchannel
    .stop();
    }
    }

    It does not at all, the sound comes not now or anything like that!

    If you call any function, the function will not work.  You must call this function whenever the program changes the values in the TextField.  What happens when the program starts and when you click the button, then work to call this function in the sections of the code.

  • validator of AF: inputtext not called when the value of text by addPartialTarget()

    I have 2 text fields: display label & name.

    "< af:inputText label ="Display Label"value =" #{pageFlowScope.dispLabel} "required ="true"id ="it2"valueChangeListener =" #{MyBean.dispLabelValueChangeListener} "autoSubmit ="true"/ >

    "< af:inputText label ="Name"value =" #{pageFlowScope.Name} "required ="true"id ="it1' autoSubmit = "true" binding = "#{MyBean.nameField} ' validator =" #{MyBean.validator} "/ >


    ValueChangeListener display of the label, I put the value of the field name as follows:

    public void dispLabelValueChangeListener (ValueChangeEvent valueChangeEvent)
    {
    String newName = m:System.NET.SocketAddress.ToString () () valueChangeEvent.getNewValue replace () on .trim ("", "_");
    MyBean.setPageScopeProperty ("Name", newName);
    AdfFacesContext.getCurrentInstance () .addPartialTarget ("nameField");
    AdfFacesContext.getCurrentInstance () .partialUpdateNotify ("nameField");
    }

    I want the validator on the name field and get called & check if the name defined by the method above is acceptable according to the logic of my profession.
    If something I write it manually in the name field, the validator is called, but it is not get called every time that the field is defined by addPartialTarget () /partialUpdateNotify () as above

    Hello

    I think that this the default behavior. The validator will fire only after user input in the component.
    You can implement your validation in the first component value change listener according to your logic.

    Gabriel.

  • record the value checkbox text

    Hello

    I have a problem with a form (flash) which I'm sure you pros will allow to solve in a second...

    I have this code and it records true/false in my db.
    Why it does not record the information of value?
    My MySql database and fields are defined on the varchar type...
    what I am doing wrong?
    I checked on some sites and they say it's possible to save the text in inserting a text in the value of a checkbox""... so I am lost, can anyone help? "

    Thank you
    k

    THANKS ALEXANDRE!
    works perfectly.

    AHHHH I'm relieved... you're a star!

    see you soon,
    k

  • create DDL from the values of TEXT on the page

    I have a form with two selection lists. The first select list (P3_OWNER_GROUP) works very well and has the onChange application to extract the other two columns associated with the selected list item and store these values in two fields of hidden text. (P3_L_TABLE and P3_L_TAB_COLUMN) through process on REQUEST. These two columns of hidden text values must be used to drive the second selection list (P3_SERVER_HOST), because they contain the full qualified table name and column name to select LOV. Here is the list of the values object code.

    DECLARE
    l_string VARCHAR2 (1000);

    BEGIN
    IF: P3_OWNER_GROUP IS NOT NULL THEN
    BEGIN
    l_string: = "select distinct" | : P3_L_TAB_COLUMN | ' d, ' || : P3_L_TAB_COLUMN | ' r of | : P3_L_TABLE | "order by 1';
    EXECUTE IMMEDIATE l_string;
    END;
    END IF;
    END;


    Error: ORA-06550: line 1, column 13: PLS-00103: encountered the symbol 'COLLECT' at the expected in the following way: =. ( @ % ; ORA-06550: line 1, column 82: PLS-00103: encountered the symbol ";" when expecting one of the following values: (, % to execute the query list of values: ' ".)

    Any help is greatly appreciated.

    The selection list call it P3_OWNER_GROUP or P3_OWNING_GROUP? If you are referring to a nonexistent element, it will always be null.

    Anyway, there is no real need for anon - block the nested, and the condition should focus specifically on the elements of the page that you are wanting to use in the query. I think it should be:

    DECLARE
      l_string VARCHAR2(1000);
    BEGIN
      IF :P3_L_TAB_COLUMN IS NOT NULL AND :P3_L_TABLE IS NOT NULL THEN
        l_string := 'select distinct ' || :P3_L_TAB_COLUMN || ' d, ' || :P3_L_TAB_COLUMN || ' r from ' || :P3_L_TABLE || ' order by 1';
      ELSE
        l_string := 'select ''- Select -'' d, null r from dual';
      END IF;
      RETURN l_string;
    END;
    

    John

  • How to check if the value of text is in a view accessor? How can I check for validation?

    Hi Experts ADF,

    JDeveloper 12.1.1.3.0

    I have a VO with a Segment1 column. And I have an accessor in my VO as SegmentVA which contains all the numbers.

    So in the user interface, I'm having a Segment1 as an inputText. The user should then enter values in inputText.  How can I check to validate that the value you enter must be valid within the ViewAccessor.

    Thank you

    Animesh

    You can use a declarative approach and define the Validation rule on EO attribute.

    Or you can create the method in your ViewObjectImpl class, expose this method as a customer interface, create custom for your input field validator and invoke the VO method from there.

    Dario

  • Access the value of text column header inside the loop forEach to a dynamic table: ADF 11 g

    JDeveloper: 11.1.2.1.0

    We have a requirement in which a dynamic array must be created. We are able to create the table. But we need the values for the dynamic to be columns the same as the name of the column.

    We have written the following code. Column header is is filled correctly. But the outputText (i.e. the column values for each row are coming as null.

    < af:forEach items = "#{backingBeanScope.backing_ReportsInterfaceBean.tableList}" var = "dynamicColumn" > "

    < af:column sortable = "false" headerText = "#{dynamicColumn}" id = "c3dwd" >

    < af:outputText value = "#{dynamicColumn}" id = "aot1" > < / af:outputText >

    < / af:column >

    < / af:forEach >

    We are stuck

    Emergency aid is much appreciated!

    Hi Ashish,

    Its a dynamic array. We had to access the column header.

    I've solved through hit and trial. If I change the bean has been prominently worn rather than extensive backup of bean, it works. I don't know what is the reason for this, but now it works.

    Thank you all.

  • Get the value Enum Text of a control Variant

    Hello

    I was wondering what is the best way to get the text of a Enum value control variant.

    What I have is a Subvi, which has a variant as an input control and this VI is designed to read all that is the variant control and write it to a file. I have been using GetTypeInfo VI for what data type is Variant and then on that basis using the variant of the data function to extract the right data. It worked well for most types of data I need.

    However for Enums while I can quite easily read the numerical value by this method, I can't seem to get the text on their part I tried to use the method of the solution posted here , but since my control itself is of type LVVariant I can't to cataloged it or replace it with a more specific class of the Enum. Although when I the LVVariant of the probe or flatten it into a string I can see that it contains all the text data of the enum. What is the best way to get this?

    Any ideas would be appreciated!

    Thank you

    Kewal

    deep in the vilib:

    VariantType.lvlib:GetNumericInfo.vi - takes a variant and returns the array of strings to enum, get the error for the non-numeric values.

    It's what you ask

  • Recognizing the value of text in a loop

    Hi everyone, here's my problem that I am currently facing. I use a < cfloop > to display the results of a query. The result I have

    the display is 'ItemName '. In this loop so I displays an entry of text for each 'ItemName '. The name of my text in put is

    ItemName #ItemID #. I did it for the name of the text input would be different for each input text so that it can be used in

    an insert on the action page. When the user clicks on the button 'Submit' the next page (action) load and

    run the insert query. Unfortunately, I get the same error, where the cfserver keeps telling me that it cannot

    recognize "ItemName #ItemID #.» Here's my query to insert.


    < cfloop query = "getNonRoleItemDetails" >

    < cfquery = name "Datasource =' #application.dbname # of the Insert_records ' user name >

    INSERT INTO tblItemDetailUpdates (ItemID, ItemDetailsListID, ItemDetailValue, ActionItemID)

    VALUES (#getNonRoleItemDetails.ItemID #, #getNonRoleItemDetails.ID #, ' #ItemName #ItemID #')

    < / cfquery >
    < / cfloop >

    I tried to experiment with various naming conventions for my text entry

    (#ItemName #getNonRoleItemDetails.ItemName #).

    but nothing has worked so far. My real concern is to ensure that a unique name is assigned to each text entry for insertion

    statement works correctly. I tried to use a standard name for all text entries (ITEMNAME) and insert that one query is

    carried out, because the name of the text input is not unique. Any help would be greatly appreciated. Thank you very much

    #ItemName # ItemID

    This is not the correct syntax. I can't tell if is it supposed to be
    a form variable or application.

    For a form variable, try #form ["ItenName" & ItemID] #.

    To a query variable try #queryName ["ItemName" & ItemID] [RowNumber] #.

  • How to capture the value of text form field?

    Version 4.1.0

    Hello

    I have two tables, a database table where the data is stored, and a correspondence table that has all the account information.
    I have a simple form (not in a table) on the base table. It has 4 fields,

    1. an account id,
    2 there are country
    3 there are region
    4 account manager.

    All this is stored in a lookup table

    When the user has entered the account number and create hits, the account id should be picked up and looked up against the table and the data that result must be returned to the form. When the user then presses the button send, the data must be committed in the table on which the form is created.

    To do this I tried to enter the account number, the user enters into the form, I tried to capture using

    apex_application.g_f01 (1)

    But does not work. Any help with the way in which we can enter this value, validate it against the table, and then bring in the lookup table details in the form and then when the user submits, she should get engaged in the base table?

    Thank you
    Sun

    ryansun wrote:
    In addition, another question. In this case for the empno data has been extracted from the same table where the insert will be made. What happens if I need to get data from another table. So let's say that the Empno and details are also stored in the table "EMP_MASTER". in this form, can reference another table and complete the empno and empname?

    Also, the recording doesn't seem to work in this case!

    Thank you!

    Published by: ryansun on October 16, 2012 02:21

    If you want to fill in all items, then it is easier to send the page...

    You mean, you want to have your page depends on more than one table? Then the source you would be static not database column... you must use collections, please install the packaged Collection sample application to learn more...

    Kind regards
    Fateh

  • in the cfgrid controls text wrapping

    Is this possible? I can't find anything that says it is.

    wrap solved, used = "hard."

  • Get the value of an enum as a Variant text

    I want to use a group of settings with which sent to another application via DDE link.  The label of each control of the cluster is sent with the value as text.  Using an array of references to the command I get the Label.Text property for each control in the cluster.  The value is presented as a Variant, so I have to convert the data into a string according to the type of data.  I got this connected to a business structure that could convert to a string data type and the data type of the ClassName property.  It works very well for the (trivial) chain, Digital and the ring but I cannot work out how to get the string value of an Enum.  I would have thought that it would be possible that the string value is a part of the data as shown but the picture indicator of variants.

    I would appreciate help with this.

    The attached vi show what I've got so far.  The desired output array is a dummy control to show what I want to get this VI

    Ken

    Hi Ken,

    See the vi changed please. If that's not enough, please also see the «OpenG» vi´s

    Mike

Maybe you are looking for