Get and set the value to allow selected rolling Shuffle and facing page

Hello world

I work with the page and spread,

For now, I want to value page spead shuffle and type of document.

but I just find the function to get and set the value for the Document Pages allow Shuffle using the

InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))

It has no function to set and get the value of enable selected rolling Shuffle and facing page

No one knows about it?

I thank in advance

There is no code for this example in the SDK or internet. Just understand and apply the concept.

Find the code for the shuffle spread and together following spread shuffle...

// Get active spread
UIDRef GetActiveSpread() {
    UIDRef spreadRef = UIDRef::gNull;

    InterfacePtr layoutData(Utils()->QueryFrontLayoutData());
    if(layoutData) {
  spreadRef = layoutData->GetSpreadRef();
  }

  return spreadRef;
}

// Get spread shuffle of passed in spread
bool16 GetSpreadShuffle(UIDRef& spreadRef) {
    InterfacePtr spread(spreadRef, UseDefaultIID());
    if(!spread)
  return kFalse;

  InterfacePtr iBoolData(spread, IID_IISLANDSPREAD);
    if(iBoolData) {
        return iBoolData->GetBool();
    }

    return kFalse;
}

// Set spread shuffle of passed in spread
// @param bValue: kTrue = no shuffle, kFalse = allow shuffle
ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) {
    ErrorCode status = kFailure;

    InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss));
    if(!spreadCmd)
        return status;

    spreadCmd->SetItemList(UIDList(spreadRef));

    InterfacePtr iBoolData(spreadCmd, UseDefaultIID());
    if(iBoolData) {
        iBoolData->Set(bValue);
    }

    status = CmdUtils::ProcessCommand(spreadCmd);
    return status;
}

Tags: InDesign

Similar Questions

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • How set the value of a LOV in CO prgramatically and get the Pkey value?

    Hello

    I need to get the Primaykey LOV will return and set a value for a LOV, say ItemLOV in a page through CO. How can I achieve this?

    Req:
    1. set the nom_element, say "DELL_1618" so that the page displays this in the LOV.
    2 get the PK value returned by LOV in the backend in an attribute of VO say Item_ID, ' 100009881'.

    Thank you
    Sicard.

    Hi Santosh,

    Sorry, I responded to general LOV scenario, but want to put it right,

    You need run your LOV query to the controller for the "DELL_1618" element using the prepared command, get the value of the value display and Id and assign the LOV and FormVlaue in the PR of the controller.

    Kind regards
    Out Sharma

  • Is any way to allow the user, set the value of a null datetime-local field

    Dear all,

    During development, I found that it is not possible for the user to set the value of a field to enter a non-empty value to null datetime-local.

    Take for example, the monitoring scenario

    -User set a track the date and time for a task

    -L' user wants to erase track the date and time of the task.

    But the controller of out-of-the-box made by webworks offers no way for the user to clear the values in the input of datetime-local.

    I would like to know, is there additional information about this limitation, or actually, there is a way to do this?

    Any useful information would be appreciated on this topic.

    Kind regards.

    Lawrence.

    It is advisable to add a "Clear" next to your input control button?

    The input control only allows you to select values for the value.  'Nothing' is not a valid date.

  • ListView MAF 2.1 how to get the value of line selection

    Hi all

    I'm trying to get the select line of a page with a listview amx

    to pass values of line as a parameter to the detail page

    which to get data from web service, but with links

    I always get the first value in the line of my list view.

    How can I refresh the values?

    Is - this java is better than the binding for this case?

    Can you help me please?

    Thanks for your help

    You can set the value of the selected line in a variable pageFlowScope and pass it to the method on the next page.

    Something similar to this:

    https://blogs.Oracle.com/Shay/entry/adf_mobile_update_through_web

  • Dynamic action to set the value to select the text box list

    Hello

    I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.

    I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
    text box that I don't know.

    Help, please.

    Thanks in advance

    Hello

    I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:

    $v(this.triggeringElement)
    

    This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.

    I hope this helps. Let us know if you have any other questions.

    Kind regards
    Anthony

  • How to get the value of a selected character unicode?

    Hi all

    How to get the value of a selected character unicode?

    The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp

    Therefore, the value of a selected character unicode is

    App.Selection [0]. Characters [0].contents.charCodeAt (0)

  • How get/set the value of the DataObject object in the task of the API?

    How get/set the value of the DataObject object in the task of the API?

    Are there examples of code availible?

    Hello

    You are here: http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_worklistcust.htm

    Antonis

  • List of selection with redirection sets the values to null

    I saw another post with a similar issue. However, the answer given does not work for me.

    I have a "Site" text field whose value depends on a list of select 'customer '. I am able to set the value of "Site" based on the select list with redirect. However, other values on this page are reset to null.

    I saw an answer that says to change the display of selection list type to "select the list to submit." But this type of display requires a page that deals with the process is created. This solution did not help either.

    Any solution?

    If you follow this example, you will be able to set the status of the session without redirection / layout page:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:229

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Can I create a cursor and set the values by myself

    Can I create a cursor and set the values by myself, and it has not been filled by an SQL?

    Thanks in advance

    Yes, you can.
    Use variables with a default value or nvl (some_parameter, some_variable) in your cursor WHERE predicate.
    They provide an example if it isn't clear, since that's all I can think about reading your post...

  • Set the value of cluster control in secondary school

    Hello

    Is there a way to set the value of control from one cluster to a high school?

    I enclose my screw in LV8.0

    Charly

    If you have a reference to the VI being put into secondary (which there or it is not in the secondary, right?) you can use it to get a reference to the façade of the VI. This in turn will allow you to read an array of references to all the controls and indicators on the front of the Secondary VI. Cross this table by looking at the text property of the label: for each reference in the table until you find the one for the control of the cluster.

    Now, use the specific function to more class to convert reference generic control of the pole to a cluster reference. You can use it to get an array of all the controls within the cluster. Now, go through this table by looking at the text property of the label: for each reference in the table until you find the one for control quevous want to set and you are there...

    Mike...

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • Set the values in cascade LOV (Skillbuilders SuperLOV used)

    Hello

    I install a simple page with a SuperLOV cascading.

    I'm trying to set the values of the first and the second SuperLOV based on the selection of a report.

    After the selection, a javascript function is called that sets the variable state and browser session P1_EMPNO

    function editRecord(pValue) {
       //set session state of P1_EMPNO to use in pl/sql query
       var a=new htmldb_Get();
       a.add('P1_EMPNO', pValue);
       var r=a.get();
    
       //set variable to trigger dynamic action
       $s('P1_EMPNO',pValue);
    }
    

    I use this point (P1_ITEM) to trigger a dynamic Action (when the value changes AND is not null) to SET the VALUE for the first LOV. This method works.

    Then one created a second dynamic Action that uses the event AFTER REFRESH for the first LOV to SET the VALUE for the second SuperLOV. It does not work

    Just to test the logic, I created a third standard LOV which is the same as the second SuperLOV and respective dynamic action. This one works.

    It's the http://apex.oracle.com/pls/apex/f?p=49044:1 application

    (PATRICK, demoadmin, 1234) application WORDERS.

    I would be very grateful for any help

    Thank you.

    OK, I discovered what was going on.

    I used a $('#P1_EMP').apex_super_lov of javascript for dynamic Action action to set the value of the SuperLOV.

  • How do dynamic actions using work to set the value in all browsers?

    I'm having a problem of incompatibility between browsers with dynamic actions to help to set the value.  Dynamic action works like a charm on Chrome but has no effect on IE or Firefox.  The code in oracle.apex.com and here are the credentials:

    Workspace: DDBA

    Username: [email protected]

    Password: redtruck12

    These codes is on page 3 and here are the details:

    There are two lists of report (Standard and special) and some reports require additional information provided in the lists of selection or text boxes.

    If the user selects a report select Standard requiring a list/text box, then the dynamic action sets the value of the special reports to NULL (and vice versa).

    Dynamic action is to prevent a simultaneous Standard reports and special selection.  To see how it works on Chrome, follow these steps:


    1. Run the Page 3
    2. Select the "Search report" option in the list Report Standard .  A text 'Search criteria' box
    3. Select the option 'Release report' in the list of special reports .  A selection list appears and disappears from the text box 'search criteria '.

    If you do the same on IE or Firefox, the text box does not disappear.

    Hi Edward,.

    Please check page 4 of your app, I made a copy of your page and made a few changes:

    I have set up an example of dynamic action 1 this hanles the report and special report selection list.

    Dynamic action games, select the value of the selection list and he accompanies in detail the report lists to null and then submits the page.

    For this I have deleted the page submit events to the time the report and special report select lists. Instead I handed them a HTML class. The dynamic action is triggered by a change of this category of html.

    When the trigger is the report selection list, select special report is set to null. Also underlying selection sub lists are set to null.

    When the trigger is the special report selection list, the selection of the report is set to null. Also underlying selection sub lists are set to null.

    The two end of the action with a "Send" page to manage the show and hide appropriate items. Note that there is a lag in time due to the submission of the page. As I have suggested, it would be treated better by a refresh of the region. On the other hand you depend on now submit for the continuation of the treatment of your page. With the help of an update of the region would require a work more javascript and cost more redisgn of your page. If you need IE8 support, additional javsascript likely to cause other unexpected behaviors. In other words, a page is maybe in your case probably better then an update of the region after all.

    I checked this page 4, Chrome, Firefox and IE (latest version) and I get the same behavior in all browsers.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Set the value hidden with dynamic action

    This is probably very simple, but I don't know exactly what I'm doing wrong.  I would like to use a dynamic action to set the value of an item hidden in the value of a selection list when that select list of changes.  So what I have is:

    Event: change

    Selection type: point

    Article: P1_SELECT

    Action: Set

    Set type: PL/SQL Expression

    PL / SQL: P1_SELECT

    Items concerned:

    Selection type: point

    Point: P1_HIDDEN

    where P1_SELECT is my list selection and the P1_HIDDEN is my element hidden.

    It doesn't seem to work.  I don't know that I'm doing something very simple, bad.  This should be easy points for someone!

    Thank you!

    John

    It's actually a session typical State missunderstanding. When the selection list is changed, it does not change the value of session state, but only the value of the side (browser) client. If you set value action will set the status value for current session on the element hidden, which will probably be NULL (or any value it is on, you can see in the session tab in the developer bar).

    Instead of a type of expression plsql for your set value action, must change to a javascript expression:

    $v ("P1_SELECT")

    who will get the value of the element of page P1_SELECT currently on the page.

    PS: also, in your affected items your article is ": P1_HIDDEN"-is two points in front of deliberate? It shouldn't be there

    PS2: If you mean to send the page, then you can set the property to 'protect the value' of the hidden element to 'No', otherwise you will receive a checksum error!

Maybe you are looking for