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
-
Multiple values from database on a single text item
i am trying to do the following
on a single text item in a form
(under form property pallete->records->number of items displayed is 5) run a triger "when-new-block-instance" with the following pl/sql statement
declare
menu_item VARCHAR2(35);
begin
select label into menu_item
from menu_options;
end;
however, once i run the form it gives me
WHEN-NEW-BLOCK-INSTANCE trigger raised unhandeled exception ORA-01422
however, if in the pl/sql statement contains only
begin
execute querry;
end;
then it works fine
The problem i beleive is the fact that the first querry retreives multiple values or recordset instead of A record.
How can i go arond this and allow the form to list all the values in this form. Eventually i will need to add conditional SQL statments and that is why just execute querry will not work.
Also, is there a way to dynamically assign a number to "number of records shown" property?
All help is very much appreciated!
nullHi, Marko
I teach Forms, and I usually find a bad idea to use SQL statements directly (in particular when you can "make" Forms to do what you want).
Inside PL/SQL, a SELECT..INTO statement is supposed to select a single row, otherwise an error occurs.
EXECUTE_QUERY works.
If by "conditional SQL statements" you mean restricted (filtered) queries, you don't need to write SQL to do this.
You can set the DEFAULT_WHERE block property to a different value before using EXECUTE_QUERY, like:
SET_BLOCK_PROPERTY('your_block', DEFAULT_WHERE, 'where menu_id > 100');
And the answer to your second question is no, you cannot dynamically change the number of records a block is displaying.
You can limit the number of records your block queries from the database table using Maximum Records Fetched block property (available in Forms 6 and above, not sure about Forms 5). However, this will only work as expected if you set Query All Records to Yes.
Hope this helps,
Pedro -
When I have current shows to download, my check for available downloads tells me all items have been downloaded. I have to go to iTunes Store and then to the show's iTunes page and click download.
Downloading past purchases from the App Store ... - Support - Apple
-
I suddenly have a "Bing" screen when I sign onto Firefox---and I want to get rid of it. The support section of Firefox says
1. "From the menu at the top of the Firefox window, seledt Tools and then select the Add-ons menu item."---but I see no "menu item" nor Tools, much less Add-ons.
2. "In the Add-ons window, click on the Extensions panel."---but how do I find the Add-ons window?
3. Find the Bing Bar and Search Helper Extension in the list and click Disable for each of them."---but what and where exactly is that?
At the top of the screen is only a Yahoo icon on the left and to the right of it a search box, "Web Search,", "My Apps," Yellow Pages," "Weather," "Updates," and "Skype." to the right of those there is a green cross saying "Add more apps. to your toolbar" and to the right of that a sort of gear shift looking icon saying "toobar settings."
So, in short, how do I get rid of the Bing screen and how do I access those Tools?
Thanks.To get rid of Bing Search Window..............
Click on View tab / Tools and un-check 'Search' (alias for 'Bing') -
When I send my imessage sometimes it tells me that my message is sent as a text message as oppsed to an imessage and then doesnt tell me if its delievered. It just started doing this last night.How can I fix this?
This feature only works with people who have iMessage on their iPhone. If you are sending a text to someone with a blackberry etc, you will not get the delivery messages.
-
Hello I'd like to know how to walk redo my iMessage on my ipod touch 4th . I connect and then says to choose an email address and it says < Check> and this is the me that his brings back on the menu. So please help me!
You can try
FaceTime, Game Center, Messages: Troubleshooting sign in issues
However, some other users have reported that did not work. No real solution has been posted here yet -
How do i read a text file and then display the content as a string
I also would like to strip the string from a certain substring and convert the remaining string into an array of floating point numbers. I was thinking of using the read from spreadsheet vi but I'm not exactly sure if that is going to work. Any help would be greatly appreciated.
Solved!
Go to Solution.Here is what I have so far. What I am trying to do is to display the text file as a string and then strip the "curve" from the text file. I think I did this successfully. Now I want to convert the remaining string into an array of floating point numbers, and display the numbers into an array and on a waveform graph.
Attachments:
hw3datafile.txt 1 KB
Q4.vi 7 KB -
Check a condition and then put the transaction as read-only
Hello people,
I need to make a check in Purchase Order (ME21N and ME23N), so that when the user enter in transaction, I will check if the invoice was registered and then put the purchase order in "read only" state.
How do you suggest me to do it?
Loop at screen? Is there a state flag to set?
Thanks a lot!!!Hi,
I didn't get your requirement correctly. When using ME21N, your purchase order is not yet created. What is the meaning of set the T-code in display mode only for the PO? ME23N is already display only T-code. If you are refering to ME22N, then probably you can think of a custom T-code where you can call ME22N/23N based on the check.
Thanks,
Vinod. -
I am triying to manually add files to my iphone and dont let me. When I check mark on manually manage box on itunes and then apply, itunes said that I already synced my iphone in other computer. I never had use another itunes to synced my iphone.
How can I solve these stupid restrictions?Where are iTunes files located?
No, I do not mean just the music. Copying just the media/music files or the media folder creates problems. -
i asked for the new apple ID and i got the message that pls check with itune support to complete transaction. what can i do?
Contact iTunes Support to complete this transaction.
http://www.apple.com/support/itunes/contact/ -
When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?
I have the same thing happening on my iPod Touch 5th gen. Been happening for at least a month. I have updated to the most recent version of iOS which hasn't solved the issue. Must be a bug that they didn't get around to resolving yet, a year later. Really annoying to have it pop up when you are in the middle of a game though.
-
I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash. However, the space does not show up on my HD as free. Can anyone point me in the right direction?
If you are using File Vault, turn it off. To find out where all the extra space is use any of these products - Disk Inventory X
OmniDiskSweeper
WhatSize
SpaceControl -
If I bought a song as a single, and then buy the whole album, will I have the single twice?
If you buy a track from an album as opposed to a single (so you are buying the actual track from off the album), then you might be able to do 'complete my album' : http://support.apple.com/kb/HT1849
-
iphone 4s is working for example can play,music recieve texts ,calls ect but has black screen and have tried the force shutdown method but still can see what im doing on the screen
Did anything happen to prior to your phone acting this way? It sounds like your screen is dead, but it is hard to say without knowing what what the cause.
1) was this a gradual problem? Did the phone screen start dimming a couple months ago and now has degraded or after some event (known or unknown to you), the phone started behaving this way.
2) Can you give more specifics on the problem? You said you have a black screen, but also you can see what you're doing on screen. Is the screen just really dim? Is the screen completely black? Does anything else besides attempting to reset the device cause it to flash white? -
so if I enable Sound Check and then increase the volume on an individual song will that song revert to playing at the sound check level??
If that's the best you can do why don't you get on another forum?
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
-
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