Invalid property does not create an error

Dear experts,
In a script to insert a marker, I got a typo on line 08:

function InsertMarker (oTtextRange, sMarkerName, sMarkerText ) {
var j, textLoc, marker, markerType, thisId, thatId, lenMarkerArray;
  textLoc = oTtextRange.end;                      // inserted at end of selection
  markerType = GetMarkerType (goCurrentDoc, sMarkerName); // Get the specified marker type.    
  if (markerType.ObjectValid ()) {  
      marker = goCurrentDoc.NewAnchoredMarker (textLoc);  
      marker.MarkerTypeId = markerType;           // properties of marker
      marker.sMarkerText = sMarkerText;  
      thisId = marker.Unique;                     // to find it in the updated array
  }
// ...
}

08 line should read:

marker.MarkerText = sMarkerText;

Therefore, the marker was inserted with empty content.

It seems that an invalid property is ignored. Is there no control for invalid properties?

Klaus

Hi Klaus,

JavaScript has no invalid properties when you write a value. The properties are just names in a lookup table. Shell in a property to write to causes a new property with that name to add to the list. And of course, you already know that JavaScript is case sensitive. In your code, the "sMarkerText" property you wrote to was not ignored but simply added to the subject of 'marker'. "."

This is a very powerful feature (that I've long used repeatedly to let my own data even when you call methods on objects to travel with the object successfully). But it can also be the cause of a lot of work debugging when you are not absolutely rigid in your naming schemes.

If you don't have AutoComplete market in your ESTK, I strongly suggest to do. It only works on one level and is not perfect (not all properties are always displayed), but at least you'll know to check the name of the property, if we claim any as you type.

Good luck

Tags: Adobe FrameMaker

Similar Questions

  • How to apply the upload of a file that does not create an error in edit mode?

    Hello

    It seems rather simple, but maybe I'm missing something (hoping that I'm not)!

    We use the Apex 5.0.1, but I believe that this is the case for other versions as well. At least that which was already identified and fixed in the latest patch.

    Here's the scenario:

    1. we have a table EMP where we maintain details about employees.

    2. we have an EMP_FILES table where we maintain one or more document (s) of support for each employee.

    3 page P1 displays the details of the PMCS with an IR showing the list of documents associated with this employee. This page also has a button called "New Document" when you click on it, takes users to P2 where they can upload a new document. The IR has an 'Edit link ' who also takes users to P2 where they can modify the file information (such as comments, date expiration etc.) or replace an already the document with a new document.

    4. we need to force users to download a document, when they save it in P2, then the easiest option was to highlight ' required ' 'Yes' as shown below:

    5. This works very well for a 'New' file upload / insert features.

    6. when users click on edit link to access the P2 and if they do not want to replace an existing document with a new document, but want to update the rest of the file info (like comments, expiration date etc.), it throws errors illustrated below:

    7. to address this problem, we put 'Value required' on 'No' and check the length of the BLOB in DB trigger BEFORE INSERT or UPDATE, as shown below:

    CREATE OR REPLACE TRIGGER BEFORE INSERT or UPDATE ON Biu_files files FOR EACH ROW

    DECLARE

    BEGIN

    IF NVL () DBMS_LOB.getlength () : NEW.fle_contents ( ), 0 ) < = 0 THEN

    RAISE_APPLICATION_ERROR () -20000, 'Please make sure to download a file not empty'. );

    END IF;

    IF THE INSERTION

    IF : NEW.fle_id IS NULL THEN

    SELECT fle_id. NEXTVAL IN : NEW.fle_id FROM dual;

    END IF;

    ((: NEW.fle_created_by: = APEX_CUSTOM_AUTH.get_user ( ) to REPLACE NVL( ) , "person", USER (), USER ();

    : NEW.fle_created_dt: = SYSDATE;

    ELSIF UPDATE THEN

    ((: NEW.fle_modified_by: = APEX_CUSTOM_AUTH.get_user ( ) to REPLACE NVL( ) , "person", USER (), USER ();

    : NEW.fle_modified_dt: = SYSDATE;

    END IF;

    END;

    /

    SHOW the ERRORS;

    8. If I understand correctly, the file upload in the APEX is nothing other than an action of 'INSERT + UPDATE' in the same folder. For example when we upload the fresh file, it creates a record with EMPTY blob and immediately update the record with the contents of the blob. Thus, regardless of whether or not users select a file, it would raise an error as mark is right at the top of the trigger code.

    9 ok, well move this piece of code at the top to UPDATE section because we want to allow the insert 1 to cross. But the problem is... Download the second part of the APEX file, which is updated would happen only if there is a selected file. If there is no file selected, ONLY the INSERT is pretty good. Thus, within the section of UPDATED trigger validation would never run for a fresh download.

    If someone has encountered this? I can't imagine that we are the 1st :-). Happy to provide / discuss it further. Thank you in advance!

    Kannan Kumara says:

    It seems rather simple, but maybe I'm missing something (hoping that I'm not)!

    We use the Apex 5.0.1, but I believe that this is the case for other versions as well. At least that which was already identified and fixed in the latest patch.

    Here's the scenario:

    1. we have a table EMP where we maintain details about employees.

    2. we have an EMP_FILES table where we maintain one or more document (s) of support for each employee.

    3 page P1 displays the details of the PMCS with an IR showing the list of documents associated with this employee. This page also has a button called "New Document" when you click on it, takes users to P2 where they can upload a new document. The IR has an 'Edit link ' who also takes users to P2 where they can modify the file information (such as comments, date expiration etc.) or replace an already the document with a new document.

    4. we need to force users to download a document, when they save it in P2, then the easiest option was to highlight ' required ' 'Yes' as shown below:

    5. This works very well for a 'New' file upload / insert features.

    6. when users click on edit link to access the P2 and if they do not want to replace an existing document with a new document, but want to update the rest of the file info (like comments, expiration date etc.), it throws errors illustrated below:

    Set the validation property default value is required on file upload on No.element.

    Create a validation of Non Null point about to file download pages and subordinate, for example the button CREATE is clicked and the PK null line item. This will ensure that the validation is done only when you insert a new file and check the updates that do not involve a file upload to be accepted without error.

  • Certificate error "the name on the security certificate is invalid or does not match the site name.

    When my computer after starting the antivirus and Skype loaded,.

    I recently started to get warning of security box appear. The attachments show you what I see.

    I am told "the name on the security certificate is invalid or does not match the name of the site"

    Whether I click Yes to "do you want to proceed", nothing happens.

    How to make this security alert disappear from the start-up procedure?

    Thanks for your advice

    Marty783

    Thank you PML

    Problem is now solved.
    Was a corrupted version of IE6, which, when updated to IE8, fixed the problem.

  • ORA-04098: trigger nom_declencheur is invalid and does not re-validation

    Hello world

    I have set up two-way between two schemas SC1 and SC2 diferents database with a table tb1 in each schema.

    I just created a trigger on tb1 in SC1 schema; before connecting tb1 (SC1) insert into another table in another schema.

    When I insert into tb1 (SC1) the trigger works well, but replication works, and there is error in dba_apply_error:

    ORA-04098: trigger nom_declencheur is invalid and does not re-validation

    How can I solve it?
    Is necessary to create trigger on SC2?

    I am new to Oracle Streams and I much doubt.

    Thanks in advance.

    Hello

    I answered this in the following thread:

    Replicate the queue in the database two

    BTW, could you please let us know what are the exact terms? What kind of application will use these queues on the databases? Please provide us with the exact application needs.

    Thank you
    Florent

  • Inclination property does not refresh

    Hi all

    I have this problem with cc animate on PC, win 7 (it's also happens in older versions of flash)

    Basically if I select a chart and Flip Horizontal (Fig 1), the Committee "transform" show me "180" in the property "skew" (photo 2).

    180_1.JPG

    180_2.JPG

    But if I deselect (photo 3) and select it again (photo 4), the "skew" property does not show me any value. But I know that the value must be "180".

    180_3.JPG

    180_4.JPG

    In order to 'see' the good value, I need to manually select the offset box, and it seems good value (PHOTO 5).

    180_5.jpg

    If I try to select the object 10 times, only 2 times he gave me the value, all other attempts gave me a 0.0 or nothing

    It is very annoying, because I often work on files created by me, so I can not go on each item and check manually IF is returned or not.

    I'm working on different pc and it happened also in older versions, so I know not isn't an installation problem.

    Can anyone help me understand why this has happened? and or solution for this?

    Thank you

    Luca

    Hi Luca,

    Thanks for the detailed report. Will review and update you as soon as we get a fix. It seems that this only occurs if you select an object, if any other object/form is already selected for example, does not produce when you move the selection of an object to another. You can use this workaround until it's resolved.

    Thank you!
    Mohan

  • ORA-39083: Object type TRIGGER could not create with error: ORA-04072:

    OS: windows Server 2003 STD 64 Bit
    DB version: 11g Enterprise Edition Release 11.2.0.1.0 - 64 bit

    I use impdp to a certain pattern and you get the following error:

    ORA-39083: Type WHAT TRIGGER could not create object error:
    ORA-04072: invalid trigger type
    Because sql is:
    DBMS_DDL BEGIN. SET_TRIGGER_FIRING_PROPERTY ('"AGILETEST" "," "SWAPOPTIMIZER" ', ALF)
    SE); END;

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMA of treatment
    P/INDEX_STATISTICS
    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX

    ----------
    I check in Metalink and found it to be a bug with no construction nearby.
    Bug 9858539 : DATA PUMP IMPORT FAILED TO TRIGGER LOGON ORA-04072: INVALID TYPE of TRIGGER

    ---------
    Any ideas?

    Well Yes, the patch is available for this bug 9858539 for 11.2.0.1 and 11.2.0.3.

    Salman

  • Firefox does not start, no error message, only works in the background

    I click on Firefox it does not start
    no error message it does not start
    It works in the background in 32-bit
    I have re installed it but nothing changes

    It is possible that your security (firewall, antivirus) software blocks or limit Firefox or the process of plugin-container without you inform, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

  • Does not create a folder takes during recording

    I'm working on a project in logic. When registering, I usually use cycle check and choose the best catch in the take folder. For a case in the song, I found it easier to use punch in recording. I don't know what other changes I might have inadvertently done, but now that I go back to the recording of the cycle, it records in cycles, but does not create a take folder. Punch in the feature is disabled and all my settings registration are set to 'Create takes the file. " Please help, thanks

    It fixed... The button replace was turned on... always wondered what was done.

  • the call firefox.exe - ProfileManager does NOT open the Profile Manager does NOT create a new profile, KILLS the old session tabs, but all pinned!

    FF 7.0.1 on Win7 pro 64

    A behavior more bug / odd:
    calling "firefox.exe - ProfileManager".
    -do NOT open the Profile Manager,
    -does NOT create a new profile,
    -seems to do NOTHING (no change around records profile etc.).
    but...
    -KILLS tabs former session.
    -KILLS old session and leaves nothing to restore,
    -KILL all my pinned tabs!

    OK, I should downgrade to FF4.0.1, or same 3.6.x?
    These releases are much more reliable than 6 + 7 running!

    Try using this:

    Firefox.exe Pei

  • Windows does not update with error code 8024402C

    Windows does not update with error code 8024402C

    Quote your full version of Windows (for example, WinXP SP3;) Windows XP 64 - bit SP2; Vista SP1; Vista 64 - bit SP2; Win7; Win7 64 bit) when you post in a forum or a newsgroup. Please do it in your next reply.

    What application or antivirus security suite is installed and your current subscription?  What anti-spyware (other than Defender) applications?  What third-party firewall (if applicable)?

    A (another) Norton or McAfee application has already been installed on the computer (for example, a free trial version which is preinstalled when you bought it)?

    0x8024402C error code when you try to install updates on Web Windows Update or Microsoft Update sites:
    http://support.Microsoft.com/kb/900936

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • LabVIEW 2014 app installer doesn't create files % 2Ffiles in the documents and does not create the registry entries at least as administrator

    the LabVIEW 2014 32 bit app installer doesn't create folders/files in personal documents folder and does not create the registry entries in hkey_current_user\software except as an administrator.

    It's a true statement.

    You must change the windows policies, user restrictions (not recommended), normally the register (write) access is limited to normal users.

  • Windows Update does not work, get error 641, 80070641 and 8004FF01 on Vista Home Premium

    Windows Update does not work, get error 641, 80070641 and 8004FF01 on Vista Home Premium

    Hello!

    the mechanic system?
    It's what has helped us to

    Open Notepad.

    Copy the following into Notepad and save it as fixme.reg

       push all the files and then save it to your desktop.

    Windows Registry Editor Version 5.00

     

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver]

    'DisplayName"="@%SystemRoot%\\system32\\msimsg.dll,-27 '.

    "ImagePath" = hex (2): 25, 00, 73, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 72, 00, 6f, 00, 6f, 00,------.

    74,00,25,00 5 C 00, 73, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 D, 00, 33, 00, 32, 00, 5 C, 00, 6 D,------.

    00,73,00,69,00,65,00,78,00,65,00,63,00,20,00, 2f, 56, 00, 00, 00, 00

    'Description"="@%SystemRoot%\\system32\\msimsg.dll,-32 '.

    "LocalSystem ObjectName"=""

    "ErrorControl" = DWORD: 00000001

    "Start" = dword:00000003

    'Type' = dword:00000010

    "DependOnService" = hex (7): 72, 00, 70, 00, 63, 00, 73, 00, 73, 00, 00, 00, 00, 00

    "ServiceSidType" = DWORD: 00000001

    "RequiredPrivileges" is hex (7): 53, 00, 65, 00, 54, 00, 63, 00 62 00, 50, 00, 72, 00, 69, 00, 76,------.

    00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 43, 00, 72, 00, 65, 00, 61, 00,------.

    74,00,65,00,50,00,61,00,67,00,65,00,66,00,69,00, 6 C, 00, 65, 00, 50, 00, 72, 00, 69,--------.

    00,76,00,69,00 6 c 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 4 c, 00, 6f 00, 63, 00,------.

    6B, 00, 4 d, 00, 65, 00, 6 d, 00, 6f, 00, 72, 00, 79, 00, 50, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 c,

    00,65,00,67,00,65,00,00,00,53,00,65,00,49,00, 6F, 00, 63, 00, 72, 00, 65, 00, 61, 00,------.

    73,00,65,00,42,00,61,00,73,00,65,00,50,00,72,00,69,00, 6f, 00, 72, 00, 69, 00, 74,------.

    00,79,00,50,00,72,00,69,00,76,00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00,------.

    65,00,43,00,72,00,65,00,61,00,74,00,65,00,50,00,65,00,72,00, 6 d, 00, 61, 00, 6e,------.

    00,65,00, 6F, 00, 74, 00, 50, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 C, 00, 65, 00, 67, 00, 65, 00,------.

    00,00,53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,00,69,00,76,00,69,------.

    00, 6 C, 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 53, 00, 65, 00, 63, 00, 75, 00, 72, 00,------.

    69,00,74,00,79,00,50,00,72,00,69,00,76,00,69,00, 6 C, 00, 65, 00, 67, 00, 65, 00, 00,------.

    00,53,00,65,00,43,00,68,00,61,00, 6F, 00, 00, 65, 67, 00, 4F, 00, 6f, 00, 00, 69, 74, 00,------.

    66,00,79,00,50,00,72,00,69,00,76,00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00, 53,------.

    00,65,00,50,00,72,00, 6f, 66, 00, 00, 69, 00, 6 c, 00, 65, 00, 53, 69, 00, 00, 6F, 00, 67, 00,------.

    6 c, 00, 65, 00, 50, 00, 72, 00, 6f, 00, 63, 00, 65, 00, 73, 00, 73, 00, 50, 00, 72, 00, 69, 00, 76,------.

    00,69,00, 6 C, 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 49, 00, 6 D, 00, 00, 65, 70, 00,------.

    72,00,73,00, 6f, 00, 6F, 00, 61, 00, 74, 00, 65, 00, 50, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 c,

    00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,61,00,74,00,65,00,------.

    47.00, 6 c, 00, 6f, 00, 62, 00, 61, 00, 6 c, 00, 50, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 c, 00, 65,.

    00,67,00,65,00,00,00,53,00,65,00,41,00,73,00,73,00,69,00,67,00, 6F, 00, 50, 00,------.

    72,00,69,00, 6 d, 00, 61, 00, 72, 00, 79, 00, 54, 00, 6f, 00, 6 b, 65, 00, 00, 6F, 00, 00, 50, 72,------.

    00,69,00,76,00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 52, 00, 65, 00,------.

    73,00,74,00, 6f, 00, 72, 00, 65, 50, 00, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 c, 00 65 00, 67,.

    00,65,00,00,00,53,00,65,00,49,00, 6F, 00, 63, 00, 72, 00, 65, 00, 61, 00, 73, 00, 65, 00,------.

    51,00,75,00, 6f, 00, 74, 00, 61, 50, 00, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 c, 00 65 00, 67,.

    00,65,00,00,00,53,00,65,00,53,00,68,00,75,00,74,00,64,00, 6f, 77, 00, 00, 6F, 00,------.

    50,00,72,00,69,00,76,00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 54,------.

    00,61,00, 6B, 00, 65, 00, 4f, 77, 00, 00, 6F, 00, 65, 72, 00, 00, 73, 00, 68, 00, 00, 69, 70, 00,------.

    50,00,72,00,69,00,76,00,69,00, 6 C, 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 4 C,

    00, 6f, 00, 61, 00, 64, 00, 44, 00, 72, 00, 69, 00, 76, 00, 65, 00, 72, 00, 50, 00, 72, 00, 69, 00,------.

    76,00,69,00, 6 c, 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 42, 00, 61, 00, 63, 00, 6 b------.

    00,75,00,70,00,50,00,72,00,69,00,76,00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00,------.

    00.00

    "FailureActions" = hex: 84, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 00, 00, 00, 14, 00, 00,------.

    00,01,00,00,00, c0, d4, 01, 00, 01, 00, 00, 00, e0, 93, 04, 00, 00, 00, 00, 00, 00, 00, 00, 00

    Go to your desktop and double-click the file name fixme.reg

    Restart the PC and try to install the updates again

    or

    Click Start.

    Type regedit in the search field and press to enter.

    On the registry change windows click on file and select import.

    Navigate to the location where the fixme.reg file and select the file.

    Click ok on the windows screen once the registry is merged successfully.

    Restart computer and check if updates installs.

    * We had system mechanic and I uninstalled it since I discovered that it corrupted my windows installer.

    Hope this helps

    Microsoft KB article

    http://support.Microsoft.com/kb/2642495

    Thank you!

    Makoi

  • Windows Defender does not work: encounteredan error: 0x800705b4

    I can't activated the windows Defender. I get this message:

    Windows Defender does not work: encounteredan error: 0x800705b4. This operation returned because the time limit has expired.

    What do you use for your antivirus protection? Windows Defender is not necessary if you use AVG, Microsoft Security Essentials, Norton or McAfee. These AV programs have their own antispyware component builtin and allows you to disable Windows Defender by design.

  • MFC - 290C scanner does not. Windows error solution

    MFC - 290C scanner does not. Windows error solution

    Hello

    ·        You did changes to the computer before the show?

    ·        If it works much earlier?

    ·        What is the exact error message you get?

    I suggest that you follow the steps in the link and check if it helps you to solve the problem:

    http://www.brother.com/E-FTP/windowsvista/us.html

  • Administrator log - on: can someone tell me why Windows Vista Premium does not create a user profile ADMINISTRATOR for me by default

    Can someone tell me why Windows Vista Premium does not create a user profile ADMINISTRATOR for me by default, as I am the main user and why he keeps me access to many programs and features in Windows, including installation and view and edit privileges?  How can I set up my profile as ADMINISTRATOR rather than another user profile and get rid of all the other profiles?  Please write to * address email is removed from the privacy * for your answer.

    Steve

    Can someone tell me why Windows Vista Premium does not create a user profile ADMINISTRATOR for me by default, as I am the main user and why he keeps me access to many programs and features in Windows, including installation and view and edit privileges?  How can I set up my profile as ADMINISTRATOR rather than another user profile and get rid of all the other profiles?  Please write toEmail removed privacy for your answer.

    Steve

    Let me soce entry details:

    1. all computers need to have at least one administrator account. It will not work without it.
    It does NOT, however, create a profile For YOU defaultAdmin. It belongs to the user or the owner to create and decide who is Admin, and who is a regular user.
    2. even an admin account will not get to install and change the settings automatically. UAC (user account control) always appears to ask for confirmation of the task by clicking on continue, or by typing the admin password.
    3 be the main user is not to be an administrator. It is up to the user/owner of the computer to be configured as such.
    That said, now my question... How do you know that you're not an admin?

    t-4-2

Maybe you are looking for