[JS, CS3] Creating a new boolean object. Is it possible?

Hello,
I am wondering if I can create a new boolean object in InDesign that I can use in a script I am working on. What I am doing is selecting some text and then manipulating other aspects of the selection's paragraph. I want to be able to determine if certain characters are selected, so the new boolean object would be, let's say "selected." If a character within the paragraph is selected, it's value would be "true," while other characters in the paragraph that are not selected would remain "false." Is this possible? I am also thinking that I could use an already existing boolean value, such as strikeThrough and then turn it off at the end of the script. But this is not elegant if the text were to REALLY need strikeThrough (not very likely, but just sayin'). Thanks for any advice.
Regards,
Len Swierski

Len,
Your current approach is the only feasible one. You can't create new properties for Indesign's objects. In some cases it's easy: text frames, for instance, can have their label set to a certain value, as can several other objects (cells, the application, etc.).
But characters don't have the label property, so you have to use an existing property, as you did with overstrike. If you don't like using that particular one, have a look through the OMV under "Character" and see if there's a property that suits your needs better than overstrike.
What you can use use this: in a script you can assign a character (text, word, etc.) an underline colour without setting underline. In the interface you'd have to enable underline, then set a colour, then disable underline. In a script enabling and disabling underline isn't necessary: just set myCharacter.underlineColor to some value ('Black' for "yes", 'White' for "no" or something like that).
So though you can't add new properties to characters, they have so many already that you're sure to find one you can exploit.
Peter

Similar Messages

  • How to create a new Text Object to be used for SAVE_TEXT FUNCTION

    hi,,
    can anyone tell how can i create a new text object and text id for saving text by using function SAVE_TEXT.
    Thanks

    hi,.
    try out this 
    DATA: header LIKE thead.
    DATA: newheader LIKE thead.
    DATA:lines LIKE tline OCCURS 0 WITH HEADER LINE.
    header-tdobject = 'VBBK'.
    header-tdname = delivery number.
    header-tdspras = language.
    lines-tdformat = '*'.
    header-tdid = text id. "for example: Z022
    lines-tdline = your text that you want to write .
    APPEND lines. CLEAR lines.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    client = sy-mandt
    header = header
    savemode_direct = 'V'
    IMPORTING
    newheader = newheader
    TABLES
    lines = lines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    object = 4
    OTHERS = 5.

  • Workflow - Create a new buisness object type for an new infotype.

    Hi all,
    I have an issue with creating a new buisness object type, which is related to a
    supertype, for an new infotype.
    I am new to workflow and business object. I don't have much knowledge in these area. I need to resolve this problem ASAP.
    Could someone please provide me a step-by-step guide on how to create a new business object type, which is related to an existing supertype, for an newly created infotype?
    If would be very much appreciated if someone could assist me in resolving this issue.
    Thank You.

    Business objects are maintained in SWO1 creating a subtype is done with the button: Create subtype (F9)
    If you don't have knowledge of workflow or abap objects, it is perhaps better to tell your employer that and find someone who has.
    If your problem is simply only creating a subtype then go with the instructions I already gave you, if however more things need to be done, like extending the subtype with (virtual)attributes, methods, events, delegating the subtype and implementing the methods in newly created tasks and subsequently workflows I really advise to find someone who can do this, or attend a SAP course on this subject.
    Kind regards, Rob Dielemans

  • How to create a new custom object in SRM

    Hi there gurus,
    Is there any (easy) way to create a new Object in SRM?
    What I need is a new object similar to a PO, Shopping Cart, RFX... in order to model a business requirement needed after Bid Responses and just before Approval Process (Contract or PO).
    I need a bus id, a range for document numbers, some custom fields related to this new object (one object per Response) and new screens in order to populate needed information...
    Any information regarding that would be really appreciated.
    Thanks in advance.

    Hi and thank you so much for your answers!
    Basicly, just after the last BID Response has been received a new approval process called "XXX" has to be performed in order to classify each response into "Acceptable" or "Unaceptable". It may sound like no business object has to be defined because a new flag field "Acceptable" could be added to the Quote, but it is not so easy because, as i said before, the underlaying workflow needs different kinds of approvals (there are additional issues which I don´t really know) and the functional team have dediced that the only way is creating a new Business Object "XXX".
    So, there should be one "XXX" for each BID Invitation, and this "XXX" object should have one item line for each BID Response received.
    All in all, I need a new screen with an input field in order to specify a BID Invitation number. I have to retrieve all offers for this invitation number and display them in a table with fields: Response Number, Response Status, Company Name, Bidder Name, Country, Amount, Price Type and Resolution (Acceptable o Unacceptable). This table represents the "Item" level for the new object "XXX".
    The header level should contain tabs for "XXX" General Info, Notes&Attachments, Approval and Tracking. We suppose that all of these tabs are standard tabs for all business objects. Furthermore, standard buttons to Save, Order, Print Prev, etc should be added and 2 new buttons have to be visible when "XXX" is approved.
    Thus I need technical information related to three different levels: i) actions to do at EP level (iviews, pages, or whatever I need to integrate this new object into the menus, powl, etc), ii) actions to do at Webdynpro level (I think that lot of standard functionalities could be reused, ie. common tabs for notes&attachments etc) and iii) actions to do at data-model level (in order to store all data regarding the new object in a proper way).
    I hope this help...
    Thank you!
    Edited by: Vicente Ángel Lopez Romero on Jul 30, 2009 11:24 AM (Typo error)

  • Cannot create a new StockTransfer object in SDK DI

    I'm having a problem using the V6.7 DI SDK with VB 6.
    My code loops through a collection, creating stock transfer entries in SAP BO. The User requirement is to add detail lines to the stock transfer until the from warehouse code changes after which a new stock transfer is created for all items originating from this warehouse, etc.
    So I have declared a stock transfer object:
    Private SAPStockTransfer As SAPbobsCOM.StockTransfer
    Set SAPStockTransfer = SAPCompany.GetBusinessObject(oStockTransfer)
    After which I set the appropriate properties of the stock transfer object and add the stock transfer lines as appropriate.
    When the warehouse changes I firstly call the add() method of the stock transfer object then I reset the stock transfer object as follows:
    Set SAPStockTransfer = Nothing
    Set SAPStockTransfer = SAPCompany.GetBusinessObject(oStockTransfer)
    The problem is at this stage, the SAPStockTransfer is not re-initialized, as I would have expected, but persists the previously held values.
    Am I doing something wrong?

    Hi Marinos,
    Try calling the garbage collector before re-inistialising the Objects.
    Try this:
    Set SAPStockTransfer = Nothing
    GC.Collect
    Set SAPStockTransfer = SAPCompany.GetBusinessObject(oStockTransfer)
    If this doesn't work try passing the parameters of the stock transfer into a procedure that will create the Stock Obj, instanciate it, do the stock transfer and the kill the stock obj
    <b>
    (Set SAPStockTransfer = Nothing
    GC.Collect)</b>
    Call this procedure for each transfer. This must work.

  • Creating a new Dimension Object in BW MDX Universe

    Hi,
    I am trying to concatenate 2 string elements in a Dimension Object within an MDX BW Universe.
    Based on some research I have done, it seems like concatenation of strings can be accomplished with the + (plus) operator.
    When I concatenate the strings, I get no parsing errors, but I get errors when using the universe in a webi report.
    In the universe, the dimensions are defined as follows: [0FISCYEAR].[LEVEL01] and [ZPD_PRD].[LEVEL01]
    I have tried many things: 
    [0FISCYEAR].[LEVEL01] + [ZPD_PRD].[LEVEL01]
    <EXPRESSION>[0FISCYEAR].[LEVEL01] + [ZPD_PRD].[LEVEL01]</EXPRESSION>
    @Select(Time\Fiscal Year) + @Select(Time\Period)
    <EXPRESSION>@Select(Time\Fiscal Year) + @Select(Time\Period)</EXPRESSION>
    If I don't put the <EXPRESSION> xml tags around the concatenation I get an XML parsing error in the webi report, but when I put them in, I believe it is trying to interpret the dimension as a MEASURE.
    I secondary need I have is to concatenate some static text (eg. "TEXT XYZ") to a single dimension, but am having the same challenges.
    Can anyone help?  I suspect there is a different XML delimiter I need other than <EXPRESSION> to make this work.
    ANy help is appreciated.  Thank you!

    Hello,
    You have two options to fullfill your requirement...
    1. Use Concat(e) function in universe while creating Dimension Object.
    2. In WebI if you use Concate([Obj1],[Obj2])
    If you need space then..
    Concate([obj1],Concate('  ' ,[Obj2]))
    Thank You!!

  • How to create a new database object?

    i login at sys or system, then enter below:
    create database project;
    the error is < privileges deny >
    what is going wrong???
    null

    Kelvin (guest) wrote:
    : i login at sys or system, then enter below:
    : create database project;
    : the error is < privileges deny >
    : what is going wrong???
    The full format of the command is
    create database project
    controlfile reuse
    datfile '?/oradata/system.dbf' size 250M reuse
    autoextend on next 100M maxsize 550M
    logfile '?/oradata/redo1.rdo' size 30M reuse,
    '?/oradata/redo2.rdo' size 30M reuse
    maxdatafiles 256;
    To execute this command do this:
    sqlplus /nolog <<EOF
    connect internal
    startup force nomount
    create database project
    controlfile reuse
    datafile '?/oradata/system.dbf' size 250M reuse
    autoextend on next 100M maxsize 550M
    logfile '?/oradata/redo1.rdo' size 30M reuse,
    '?/oradata/redo2.rdo' size 30M reuse
    maxdatafiles 256;
    alter tablespace system minimum extent 64k;
    create rollback segment rb_t;
    alter rollback segment rb_t online;
    @?/rdbms/admin/catalog
    @?/rdbms/admin/catproc
    EOF
    and your project database will be created.
    null

  • Cascading LOVs with the ability to create a new record.  Is this possible?

    Hi,
    I'm trying to create a couple of LOVs. The first is a list of manufacturers, the second a list of items. Essentially, when you select a manufacturer in the first LOV you will only see their items in the second LOV.
    I've had a look through the forum and I think I've got a handle on how to do a cascading LOV... except...
    I'd like the users to have the ability to type in a NEW manufacturer and NEW item if necessary and have that combination then saved into the source table.
    Is that possible?
    Thanks,
    Joseph

    Hi,
    Browsers don't have the combo-box functionality that you would find in something like MS Access. You could try autocomplete - see [http://apex.oracle.com/pls/otn/f?p=31517:53] - but you would then have to look up every entry (the field would only relate to the display text and not the ID for the item, so that would have to be looked up every time).
    I'd like to say that you should be able to trust your users not to create duplicate entries. I'd like to say that, but.... ;)
    Andy

  • Error when trying to create a new object that begins with Z

    Hi forum,
    When I try to create a new BW object that begins with Z (infofuente, infoarea, component application), I skip the following error.
    Namespace''is not a valid namespace BI
    Message no. R7017
    Diagnosis
    Namespace''must be entered in both the BI RSNSPACE table and the basic table TRSNSPACE or the view V_TRNSPACE. You also have to enter the relevant generation namespace '& V2' in TRNSPACE table. This value is taken from table RSNSPACE.
    Both namespaces must be set to 'Changeable' - providing they are not empty.
    Response System
    You can not edit or create an object in this namespace.
    Procedure
    Use a different name.
    Or contacct your system administrator. He / she can switch to the namespaces' Changeable 'using SE06 transaction, or - if they do not already exist - enter them in the table above named using sm30 transaction.
    If the namespace '& V1' is empty, then the problem is with the generation namespace '/ BIC /'.
    Procedure for System Administration
    I've been following steps said to me, and yet I still persisted error. I am probably missing something ... that may be?
    A greeting,

    Hi,
    Try to create the objects again and take the screenshot of SU53 when you get the error and see the authorization object for which you are getting the error here.
    It is possible that you dont have development authorization.
    Also the issue could be that the system is not configured to create the objects begining with Z.
    Check this with basis as well.
    Thanks
    Ajeet

  • Creating new graphics object from a existing one and sending it for print

    Hello,
    i have a graphics object which is big in size, I am creating a new graphics object from the existing one as given below
    //map is a graphic object
    Graphic g1 = (Graphic)map.create(x,y,width,height);
    Graphic g2 = (Graphic)map.create(x,y,width1,height1);
    Graphic g3 = (Graphic)map.create(x,y,width2,height2);
    arrayList.add(g1);
    arrayList.add(g2);
    arrayList.add(g3);
    Now I want to send the graphic object g1,g2,g3 for print in the method
    public int print (Graphics g, PageFormat pf, int idx) throws PrinterException {
    // Printable's method implementation
    if (curPageFormat != pf) {
    curPageFormat = pf;
    pages = repaginate (pf);
    if (idx >= 3)) {
    return Printable.NO_SUCH_PAGE;
    g = (Graphics) arrayList.get(idx);
    return Printable.PAGE_EXISTS;
    This is not working... what is wrong. can anybody suggest..
    I tried standardprint.java to print a object inside a scrollpane, it is not printing the entire diagram. so I am thinking of something like this.... Please let me know what to do....
    Thanks
    Serj

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Create a new object that surrounds the selected objects

    Is there anyway in illustrator to create a new vector object from selected objects?
    IE if i have three rectangles selected, can I make a new vector path that surrounds them all.
    I dont mean welding a group of vectors together or offsetting a path...which isnt exactly what i need.
    What Im needing to do is create cut lines around complex vector art quickly.
    Thanks in advance.

    Mike i need to make an outline around a logo but if the logo has many elements that make up the edge of the logo does that method work?
    As the cut line needs to be a closed path
    Ideally i want to avoid tracing around the logo with the pen tool or add to shape area in pathfinder tab.
    I sure theres a really easy way to do this.
    Kurt its an interesting discussion however in need a closed path to surrond artwork and live paint does just the opposite :)

  • Entry in CRMC_OBJECTS when creating new BOL Object??

    Hi All,
    when creating an new BOL Object, that is creating an entry in SPRO under
    Extend Model for Business Transactions with New Nodes
    the second field is called "Object Name". One must enter a value there when creating a new BOL Object.
    This field accepts entries in CRMC_OBJECTS. The problem is that I cannot make an entry in CRMC_OBJECTS since it is a SAP table.
    Does anybody know what to do to get an entry in CRMC_OBJECTS? Is there any other way to do this?
    Thanks, Johannes

    Hi!
    For maintaining CRMC_OBJECTS table you should use view CRMV_OBJECTS. (in transaction SM30).
    Regards,
    Alejandro.

  • Create new search object for simple/embedded search

    Hi,
    SAP CRM contains indexing and search functionalities based on SAP Netweaver Enterprise Search. SAP delivers search models, connectors and search abilities for a lot of CRM objects, like Accounts, Contacts, Opportunities, ...
    However, some objects like "Service Requests" (BUS2000223) and "Tasks" (BUS2000125) are missing.
    Has anyone tried to perform a complete extension of the whole process including template modeling, change pointers (for delta indexing), enhancing UI to provide search abilities for these objects, and so on?
    I found different kind of information on how to create a new search object template, however, no further details about what comes after, e.g. how to index, how to handle change pointers for delta, what to do in the CRM web UI to provide search ability and result lists...
    Many thanks & regards
    Wolfgang

    Hi Ralf,
    there is a new Book avaliable "mySAP CRM Interaction Center" from Thorsten Wewers and Tim Bolte. Currently it is only avaliable in german. But as I've seen from your Business Card that should be OK. There is also a Chapter about extendig the Search in IC WinClient.
    Regards
    Gregor

  • When to create new authorization objects

    Hi Experts,
    I am learning SAP Security.
    I have one question , what is the necessity of creating new authroization field and object , when SAP gives a huge list of objects /fields.
    Is there any reason behind like, whenever a customised transaction is created, a new authorization object or filed has to be created?
    Regards,
    Rekharaj

    Trick is to find not only a standard authorization object with the same field you are looking for, but an object already assigned to the users with those roles with the same semantic for all it's fields - so that you can simply reuse the existing concept which is also assigned to the sets of users.
    Often you will find "base" function modules and classes you can use to do all that work for you. Just call them at the correct location in the code and dont forget to check the return code and react to it.
    If you use BAPI APIs to access or process data, then many of them make these same semantically correct checks "out of the box".
    Cheers,
    Julius

  • Creating New Class Object progmatically

    Instead of uploading an XML for a new type definition, I want to create a new class object progmatically.
    In my code, I basically set up a ClassObjectDefinition, set the attributes, then call createSchemaObject.
    I'm getting an exception saying that I have an invalid or missing option.
    What is the bare minimum needed to create a new Class Object?
    null

    First - you must be admin mode to create any subclasses. Minimally, you need to set:
    - ClassName
    - SuperClass
    - your custom attributes
    If you have created your own java class which is optional, you will need to set:
    - BeanClassPath
    Then there's optional settings such as Description.
    If this doesn't help, is it possible to post your code setting the ClassObject Definition attribute Values (AVs) and the create?
    As a guide, you should set all the AVs that you used to create a subclass via XML.
    Another note - once you create subclass named FOO, you will not be able to create another subclass named FOO.
    Another note (!): by default, iFS will use your class name to create the DBMS table. If you have a particularly long class name which will exceed the DBMS limits for table names, then you will want to set:
    - DatabaseObjectName
    hope this helps.
    -S
    null

Maybe you are looking for