Check if a single Text Item in a cell is bold and then grab the string that is bold

I have written a script that runs through a table and parses out the information I need to create another table with some added information.
The last piece that I can't seem to figure out is how to check if some text in a cell is bold and then grab said text to put in the new table.
I will give a small table demo of what I am try to retrieve.
Table A.
Column 1
Description
123456
This is a description (This is a note)
789123
This is a description (This is note A) (This is note B) (This is more stuff that isn't needed.
Table B.
Column 1
Column 2
Note
1
123456
(This is a note)
2
789123
(This is note A) (This is note B)
I can pull all of the other information across that I am trying to get without any issue.
I can't seem to figure out how to check the formatting of a TextItem to see if it is bold. I have been able to figure out how to check if a cell has bold text in it. using if ((tItems[counterVar].idata & Constants.FTF_WEIGHT) > 0). This ends up not working well because of a few issues. I was wondering if there is any way to check the formatting of a single character?
I tried something similar to the following:
prop_Change = tbl_Description_Cell.GetText(Constants.FTI_CharPropsChange);
txt_String = tbl_Description_Cell.GetText(Constants.FTI_String);
if (prop_Change.len > 0)
        if((prop_Change[0].idata & Constants.FTF_WEIGHT) > 0)
                pOffset = prop_Change[0].offset;
                for (var tbl_tItems = 0; tbl_tItems < txt_String.len; tbl_tItems++)
                        tOffset = txt_String[tbl_tItems].offset
                        if(tOffset == pOffset)
                                alert(txt_String[tbl_tItems].sdata);
Thanks,
Steven

Depends on your forms-version. If you are using a web-based version, you could have a look at the Java-bean-editor FRITE, it supports such features.

Similar Messages

Maybe you are looking for

  • Export to Spreadsheet in Agent Inbox - Values on First Page Only Get Transferred

    Hello, I am facing an issue with the "Export to Spreadsheet" functionality in the Agent Inbox. The number of items in the inbox is too large to fit on one page and therefore spans multiple pages. Now, when I choose to export the inbox results to a sp

  • How to debug XSLT in BPEL

    Hello, I am getting issue in BPEL code while executing XSLT file. If I have performed the 10 mappings in XSLT file and one of them has error in assigning source to target values. Its just mentioned that following XSLT file has error and doesn't menti

  • Receiver determination issue with PI Directory API

    Hi Guys, I was trying to use the PI Directory webservice API to automatically build Integration Directory Objects. I found an issue when creating Receiver Determination Object. Here are the details: My scenario is one to many, one Interface with seve

  • Is there a good 17" lcd monitor for under £200?

    hi which 17" lcd screen do you think is the best for under £200 to go with my new mac mini any help would be greatly appreciated as i am completely at a loss charlie

  • Best Workflow for Multicam Sequences?

    I have a project that includes video from 2 cameras and audio from 2 audio recorders. I synced everything up using PluralEyes, then imported it back into Premiere. Then I opened the synced sequence, deleted the camera audio, nested the video, and ena