ES: Passing a value of variable function to another function

Hello comrades,.

Let's say I have a function that includes a variable as follows:

being = Open (< doc_name >, openParams, openReturnParams);

I would use being in another function to import the file to a file formats into being.

Is there a way to make being, comprehensive and accessible from another function?

Thanks in advance for your answers!

Hi Roman,

You check if there is a paragraph format, no question of whether the first paragraph of the document has this format applied. If you use the same model for all the files, all the files will have the same paragraph formats, where the 'if' to check if the paragraph format still exists will be 'true '. And when you check if this paragraph format is the first format in the file, it will probably produce 'false', as it's a strange coincidence that this paragraph format would be the first condition in the list.

What you need to do to check that the format of the first paragraph in the file is the following (I did it in a function that can be used with any paragraph format first, so that you may be looking for).

function CheckFirstParagraphFormat (oDoc, sFormat)

{

var oFlow = oDoc.MainFlowInDoc;

var oFrame = oFlow.FirstTextFrameInFlow;

var oPgf = oFrame.FirstPgf;

If (oPgf.Name is sFormat)

Returns true;

on the other

Returns false;

}

The name of the object of the Pgf is the name of the format that has been applied.

Good luck

Jang

Tags: Adobe FrameMaker

Similar Questions

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

  • Passing a value to a function of a radio button

    Hello

    I don't know that it is very easy for you to experts. I would like to pass the value of a radio button selected in a function:

    < mx:RadioButton id = "" jpg"label =".jpg"/ >
    < mx:RadioButton id = "png" label = ".png" / >

    < mx:Button label = "Snapshot" click = "clickHandler ()" / > "

    How can I say here to move the selected value in the option button?

    Kind regards

    Manolo

    Hello

    As you mention that you must first select the radio button and the button click.

    On the click event of button, you can check which radiobutton is selected and do as your requirement.


    http://www.Adobe.com/2006/mxml"layout ="vertical">
       
       
            Import mx.controls.Alert;
               
    private void onBtnClick(event:MouseEvent):void
    {
    If (rdUp.Selected)
    {
    Alert.Show (rdUp.label + "Selected")

    do something
    }
    Another yew (rdDown.selected)
    {
    Alert.Show (rdDown.label + "Selected")

    do something

    }
    on the other
    {
    Alert.Show ("none selected")

    do something

    }
                   
    }
    ]]>
       
       
       
       
       
       
       

    Regarding

    Virat Patel

  • Pass the value of the date to another element on a page to another

    Hello

    On one page, I have a hidden item that stores the sysdate.

    I want to spend the date value for this point to another hidden on another page in the format DD-MON-AA HH24:MI:SS.

    It seems impossible because Apex puts time value in the url with a colon, which is used as a delimiter, so all I get is HH24 JJ-MM-AA... and I lose all the following values that should be passed as well.

    for example

    25 JANUARY 11 11:03:25

    is passed as

    JANUARY 25, 11 11

    Any ideas to overcome this problem.

    was soon Paul

    Published by: ent on 31 January 2011 01:40

    Hello
    Another way is to write before the process of the header (or perhaps computing will be better) on the page of the item target, which gets the value of the source element, turn it into something as you wish and sets target the value of the element.

    Jirka

  • Pass the value of the item to another page of link

    Dear,

    I would like to pass a value of item to another page.
    I use:
    http://xxxxx:7777/pls/apex/f?p=200:46:80254239052108::NO::P46_TEST,P46_TABLE:#LABEL#,&P56_HW
    # is wel #label moves to the next page but no P56_HW.

    Could someone help me?

    THX.

    Celio

    Hello

    You are missing the point in the end, it should be & P56_HW. (with the full stop), which is part of the syntax of substitution.

    See you soon

    Ben

  • passing multiple values of variable presentation to go the url in dashboard

    Hi all

    I use go url in dashboard in the area of text using html file mark up. We have a guest area which saves the values in the variable of presentation P_REGION. The link to the dashboard works well when we choose to value as a single region. She passes the parameter. However, if we choose multiple values, it fails. Do we need to modify the code below in support of more than the presentation variable value to pass to the report.


    <a href="http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables.P_REGION}">Drill Report</a>
    Thank you

    Sushil

    Before you go to the link, I would say to understand how the variable takes values.
    Try to use the link as ay of the column expression in the criteria to see the full url with multiple values.

    http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables. P_REGION}

    If my assumption is not wrong valiables holds as "one, two."

    This will give you some ideas to work on.
    If need more help to share the url with multiple values.

    BTW: I don't think that it works with multiple values, give a try, as said.

    So much sense mark :)

  • Passing the value to the function clears the default value of the textBox before onClick

    I created a 'clearTextBox()' function so that when an edittext obj is clicked in the default text disappears. He works until I try to spend the 'default' text in the service, to which cases it erases the text without the onClick. See: "textBox.line01.onClick = clearTextBox (textBox.line01, defaultText01);"

    myGUI (this);

    function myGUI (thisObj) {}

    var myGUIPalette = myGUI_buildUI (thisObj);

    function myGUI_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "user input panel', undefined, {resizable: true}");

    {//Build GUI

    res = "group {orientation:"column",-}".

    titleGroup: group {orientation: 'row', \}

    myStaticText: StaticText {text: 'Handset team word interludes'}, \

    },\

    textLineGroup: Panel {orientation: "column,"------}

    line01: EditText {text: 'Enter the text line 01'}, \

    line02: EditText {text: 'Enter line 02 Text'}, \

    line03: EditText {text: 'Enter line 03 Text'}, \

    },\

    'ButtonGroup': group {orientation: 'row', \}

    clearButton: button {text: 'Clear'}, \

    renderButton: button {text: 'Making'}, \

    },\

    }";

    }

    myPanel.grp = myPanel.add (res);

    Default values

    //TextBox settings

    var defaultText01 = "enter the text of the line 01 ';

    var defaultText02 = "enter the text of the line 02."

    var defaultText03 = "enter line 03 Text."

    var myPanel.grp.textLineGroup = textBox;

    textBox.line01.text = defaultText01;

    textBox.line01.onClick = clearTextBox (textBox.line01, defaultText01);

    function clearTextBox (activeTextBox, defaultText) {}

    if(activeTextBox.Text == DefaultText) {}

    activeTextBox.text = "";

    }

    }

    Return myPanel;

    }

    If ((myGUIPalette! = null) & & (myGUIPalette instanceof window)) {}

    myGUIPalette.center ();

    myGUIPalette.show ();

    }

    }

    Hi sbaden04.

    Your syntax does not work, since the textBox.line01.onClick = clearTextBox (textBox.line01, defaultText01); entitled to textBox.line01.onClick the result of the right side, which is not a function, but undefined. You can try this way:

    textBox.line01.onClick = function() {clearTextBox (textBox.line01, defaultText01) ;};}

    Or like this:

    textBox.line01.properties = {defaultText: defaultText01};

    textBox.line01.text = defaultText01;

    textBox.line01.onClick = plain text;

    function clearText() {if (this.text = this.properties.defaultText) this.text ="" ;};}

    Xavier.

  • How to pass a value from table in to another using java-oracle script: apex 5.0

    Hello

    Step 1:

    Two Table (product, product 2)

    Created an IR where all data are from Table Product

    -> a cell in the column is editable.

    Step 2:

    Whenever the user change certain values of cell and click on the button set to day then cell value must also be updated in the table leader2.

    -> entire product line (table) must be inserted into the product 2 (table) with update of the cell value.

    JS:

    var arr_f01 = [];

    () $("input[name='f01']").each

    function() {}

    If ($(this).) Val() > 0)

    {

    arr_f01.push ($(this).) Val());

    }

    });

    (apex). Server.Process

    "Update".

    {f01: arr_f01,}

    {dataType: "text", success: function (pData) {alert ("' data inserted into the Table Product");}}

    } }

    );

    Thank you.

    Hi Dominique,.

    Pranav.Shah wrote:

    Hello

    Step 1:

    Two Table (product, product 2)

    Created an IR where all data are from Table Product

    --> A cell in the column is editable.

    Step 2:

    Whenever the user change certain values of cell and click on the button set to day then cell value must also be updated in the table leader2.

    ---> Whole product line (table) must be inserted into the product 2 (table) with update of the cell value.

    JS:

    var arr_f01 = [];

    () $("input[name='f01']").each

    function() {}

    If ($(this).) Val() > 0)

    {

    arr_f01.push ($(this).) Val());

    }

    });

    (apex). Server.Process

    "Update".

    {f01: arr_f01,}

    {the data type: 'text', success: function (pData) {alert (' ' data inserted into the Table Product ');}}

    } }

    );

    Thank you.

    Follow the steps below.

    Step 1: Give static id to the other columns in your interactive report

    Attributes of the region-> column-> Id static definition

    Step 2: change your Javascript code to read values of other columns

    check the line no 8, in this way, you can read the value of other columns and push that in table

    This is the static id of the column I given EMPNO.

    do the same for the other columns you want to insert.

    var arr_f01 = [];
    var arr_f02 = [];
    var empno;
    $("input[name='f01']").each(
    function() {
    if($(this).val() > 0)
    {
      empno = $(this).closest('tr').children('td[headers="EMPNO"]').text();
      arr_f01.push($(this).val());
      arr_f02.push(empno);
    }
    });
    
    apex.server.process (
      "Update"
    , {  f01: arr_f01, f02: arr_f02
      }
    , { dataType: 'text',success: function(pData){alert('Data Inserted in Product Table');
    } }
    );
    

    Step 3: use tables in your ajax process to insert the record., replace your table name and the columns

    begin
    for i in 1..apex_application.g_f01.count loop
    insert into test(A,B) values (APEX_APPLICATION.G_F02(i),APEX_APPLICATION.G_F01(i));
    commit;
    end loop;
    end;
    

    Hope this helps you,

    Kind regards

    Jitendra

  • Passing the value with coma inside to another page

    Hi all, need your help.

    I have trouble to clarify how to pass value with coma to another page.

    For example, I have a P2_NAME field: with the current value: Test, name

    When I'm passing this on page 3 I get only from Test. I do not understand why, but I do not know how to deceive the APEX?

    var url = ' f? p = & APP_ID.:3: & SESSION.: NO::P2_NAME: "+ $v ('P3_NAME');

    Window.Open (url, "name", "height = 600, width = 800, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");

    Thank you very much

    Andrei

    Hello

    This might help

    2.5 understanding URL syntax

    List of values of the element used to define the session state in a URL.

    Item values cannot include settlers, but may contain commas with backslashes.

    To change a comma in a value element, place the characters with the backslashes. For example:

    \123,45\

    Kind regards
    Jari

  • Pass the value of a picture in another frame

    Dear all,

    I put component (enter1) button and textinput (quiz) in the layer named "form".
    And I also add a layer called 'action '.

    I put the following codes in the frame1 in the layer of 'action '.

    {enter1.onPress = Function ()}
    trace (quiz. (Text);
    gotoAndPlay("form",14);
    }

    I put the following code in picture 14 in 'action' layer

    trace (quiz. (Text);



    When I enter some formulations textinput "quiz" and press the button "enter1."
    the result is that the trace window displays correctly what I typed in Image1 layer of 'form '.
    but when go to section 14 in the layer of 'train', it will show underfined in the trace window.
    What is the problem?



    Wing

    If the textinput 'quiz' does not exist in the 14th or if you insertedd a keyframe, which adds a new instance of 'quiz' and the text cleaning your framework typed 1, then the variable which is 'quiz.text' does not exist in frame 14.

    Input of frame 1 must always be on the deer in 14 or you need to store the text in the frame 1 inut in a variable that can be accessed through 14. It's easy to do. In your button code, type:

    var myVar:String = quiz.text;

    Now if you want to get the text (via trace or any other method), just use "myVar". In 14, so you can change the code to:

    trace (MyVar);

    That should do it! Good luck!

  • Passing a value from one table to another

    Access database:
    I have 2 tables, table 1 has a field that is a primary key (not indexed, no dups), table 2 has a field that should receive the same number as the table represented in 1.
    The problem is that when the query runs, it gets the MAX (number), but when it is inserted in table 2, all records in table 2 are updated with this number.
    Is there a way to prevent all the records in a table 2 updated and only the most recent file receiving the number in table 1?
    Any ideas?

    This is my query:

    < cftransaction >

    < cfif len (trim (form. GT Time_Spent)) 0 >
    < cfquery "InsertRecord' datasource = name ="NBProdReports">
    Insert Into TblMasterTrans (Time_Spent) Values ('#form.) Time_Spent #')
    < / cfquery >
    < / cfif >

    < cfif len (trim (form. WG Notes)) 0 >
    < cfquery "InsertRecord' datasource = name ="NBProdReports">
    Insert into TblContractInfo_SubMenuTable (Contract_Number, Transaction_Type, Num_Checks_Trans, Notes)
    Values ('#form.) Contract_Number # ',' #form. Trans_Type # ',' #form. Num_Checks_Trans # ',' #form. Notes #')
    < / cfquery >
    < / cfif >

    < name cfquery = "getTask_Number" datasource = "NBProdReports" >
    SELECT MAX (Task_Number) AS theTask_Number
    Of TblMasterTrans
    < / cfquery >

    < name cfquery = "SetTaskNumber" datasource = "NBProdReports" >
    Update TblContractInfo_SubMenuTable
    Set
    Task_Number = #getTask_Number.theTask_Number #.
    Where Task_Number = Null
    < / cfquery >

    < / cftransaction >

    In fact, you could even with impunity with a single query by selecting the Task_Number MAX in the second insert statement.



    Insert Into TblMasterTrans (Time_Spent) Values ('#form.) Time_Spent #')



    Insert into TblContractInfo_SubMenuTable (Task_Number, Contract_Number,
    Transaction_Type, Num_Checks_Trans, Notes)
    SELECT MAX (Task_Number), ' #form. Contract_Number #'.
    ' #form. Trans_Type # ',' #form. Num_Checks_Trans # ',' #form. Note #'
    Of TblMasterTrans

    Phil

  • Pass values to the function vs object pass to the function

    What is the best way to pass some values to the function?

    It is sufficient to indicate the characters or arrays of char etc something like this: function (float x, float [] z)

    or

    Create class (object)... say ValuesToPass vltp;  with the variables, the set and get methods.

    Assign values: vltp.setX = blah, blah = vltp.setZ

    ...  And not vltp to the function like this: function (vltp) and the values of the extract by using the get methods...

    What sense would be less time and consume of heap space?

    From my point of view - by passing the values as values would be faster, but I'm new to java and can't be 100% sure on this subject...

    Thank you

    If a method will work on three different bits of data, such as arrays of 2 char and int, so I suspect that most people would say just pass these as parameters rather than creating a "temporary" object just to contain these.

  • passing a value line selection and submit button

    I created a page jsff divided into 2 parts
    Part 1 - contains the table, and on the selection of rows in this table, I want to pass a value to enter text from another jsff page (which is in the second part of the page) and offer a button
    Part 2 of a region
    region contains a page jsff containing an input text and submit button


    So what I want to do is
    on the selection of lines in the above table I want to copy a column value to enter a region below text and also submit a button


    Help, please

    If the two regions share the same control of data you could do so declaratively. check this one... http://andrejusb.blogspot.com/2010_04_01_archive.html

  • How to pass the value of a column to a variable to be used in another analysis

    Hello

    I'm on OBIEE 11.1.1.7.1.

    I have the following problem.

    I have DISCOVERED called analysis. It has just a column with the result. Simple. Assume that the answer is 2500

    I have another scan which has two other columns, namely GOLD and LOANS. I want to calculate the total DISCOVERED + GOLD + READY.

    That's why I need to pass the value of 2500 of the first analysis of the second analysis via a variable.

    I can not add all three of them in the same analysis there are various filters for OVERDRAFT, and the application of these filters on the GOLD and LOANS gives the desired result. I tried to add filters in the column of the overdraft, but that doesn't seem to work.

    Any help will be greatly appreciated.

    I'll give you an example. I hope that you will mark for my time...

    Hope that you will be aware of how to combine a similar request.

    in the first criterion you have

    Goldprice Loanamount year 0

    Second criterion

    Year 0 0 Overdraftamount

    the two maintain the necessary filters.

    Add a column of result (option you can see in the topic area pane) that add all three columns. You can choose the columns. formula will come something like below

    saw_1 + saw_2 + saw_3

    Thank you

    AJ

  • How can I pass a value to a variable binding in a report query?

    I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:

    SELECT EMPNO, EMPNAME, EMPDEPT

    FROM EMP

    WHERE EMPNO =: PARAMETER;

    I want to call the report print directly from a page, by using the url print showed by apex:

    f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT

    How can I pass the value of the variable binding: PARAMETER using this URL?

    I don't think you can use the url parameter passes in a report query.

    the binding variable: PARAMETER must be a page element or an element of the application.

    use the "include session information and application" in the defination of report query to bind the value when the report is run

Maybe you are looking for

  • Problems printing from laptop to wireless network

    I've had problems for months now print wirelessly from my laptop to my printer. I use a HP OfficeJet 6700 Premium, and my laptop is a Lenovo. When I click on print a document, I get a warning on my laptop that the driver for the printer is offline. I

  • Size of the graphics and fonts

    I just bought a laptop Pavilion g7 with Windows 8. I don't know what I hit, but the graphics and fonts have increased in size. How can I put them back to normal?

  • Software of blackBerry Smartphones update freeze progress to the stage of the backup

    Hello IM using 9790 "BOLD" and try to update the software of version 7.0 to 7.1 I already waited for 5 hours, but it is still stuck to the protection of data (database: service book 3 0f point 5) need help. pls advice

  • ACS 5.0 with authentication VPN

    Hello If you would be grateful if someone could guide me how to configure the ACS5.0 radius for authentication of remote access VPN. And how could I implement the Pools of IP for VPN users. Best regards Lunedor

  • How can I get in my e-mail contacts distribution lists?

    I have some set up on people.live, but they don't seem to be available in the Mail application. It's frustrating, because I don't want to send emails from people.live when all my emails are in the Mail. Help!