Text processing question

I have a vCard file that I need to modify by removing all non-digit characters from telephone numbers.
Here's the exact process that needs to occur:
If a line begins with "TEL", then remove all non-digit characters from the portion of the line following ":".  (Every line contains only one colon.)
I have no experience with sed or awk, but I was able to hack a solution together using awk:
awk -F: '/^TEL/ { gsub(/[^[:digit:]]/, "", $2); print $1 ":" $2 } !/^TEL/ { print }'
Is there a simpler way to accomplish my goal?  The code above feels somewhat redundant.
I initially attempted to use sed, but I couldn't figure out how to remove non-digits from only part of a line.
-David

Haha, I blame that it was late when I began coding it, but it's a simple move of a ^ as you've already done.
The explanation of tx is that I could only get the s/// to substitute the first number of digits, eg TEL11:22x33 -> TEL11:x33 instead of -> TEL11:x
so what I do is that in the beginning I define a label x, with ":x" and in the end I jump to label x if a s/// successfully substituted something with "tx".
IE
"TEL11:22x33" --[s///]-> "TEL11:x33"
s/// was successfull, jump to x
"TEL11:x33" --[s///]-> "TEL11:x"
s/// was successfull, jump to x
"TEL11:x" --[s///]-> "TEL11:x"
s/// was unsuccessfull, parse next next row of input
Last edited by tlvb (2009-09-13 13:13:58)

Similar Messages

  • WAAS Application Requests - Process Question

    Non Technical Process Question
    We all have forms we have our users complete when a firewall rule or change is needed.  You may even have a similiar documents for when load balancers or DNS changes are required.  Does anyone have document they can share that outlines what pieces of information are needed for intergrating applications into WAAS?  What about ongoing changes?
    Source, destination and TCP port information is really a very small portion of the what needed to maintain a clean a defined methodolgy within the WAAS manager.  Does anyone have an example or can describe how you collect the initial information to set up WAAS but how do you keep track of changes that may be needed as the application charaterics change or the server farm expands horizontally?
    Thanks - Sam

    Sam,
    the general answer for detailed information on how to configure WAAS for certain applications is described here:
    http://www.cisco.com/en/US/docs/app_ntwk_services/waas/waas/v501/configuration/guide/policy.html
    In general, WAAS comes preconfigured for the most widly used applications in the industry.
    In order to understand, which configuration is necessary for a new application, one needs to understand the basic options WAAS offers.
    These are two options:
    1) Use an Application Optimizer (AO) if you need some dedicated protocol know how. ( e.g. (e)MAPI, CIFS, SSL, HTTP, ICA, to name some)
    2) Generic TCP traffic is optimized using TCP Flow Optimization (TFO), Data Redundancy Elemination (DRE) and Lempe Liv (LZ) compression.
    The in terms of processes, the question is:
    1) Is there a policy preconfigured for the new application?
         a) yes
              If an AO is used, does the AO need configuration? ( example: SSL AO requires certificates)
              Do we have specialities which require further fine tuning? ( Answer is mostly: no, Example: non-standard ports)
         b) no
              You define what you need for the application based on the protocol characteristics.
              If you have defined these characteristics you can choose one of the AOs, or define which of the "generic" options fit the traffic. For example, for traffic that is already compressed, it does not much benefit from LZ, so choosing only TFO and DRE. Another example is traffic that has not much of dublicate data, perhaps it does not benefit a lot from DRE, so you configure TFO only.
    Does that answer your question?
    Thanks,
    chris

  • How to use DS's text processing to parsel the text data stored in DB table?

    I want to use DS's text processing to parse the text data stored in a database table, but all the demo I see is parsing text from a flat file. I tried with the blueprint  sample and edit the input from a flat file to database table, but can not map the column with the base entityExtraction. anyone can give me a guide or example? thanks so much!
    regards,
    Bin

    Still looking for some ansewers. Can any one help me?

  • Question related to my previous "background process" question.

    Hello Folks:
    Can I start a "Notification Service Subscriber" process through the
    normal startup procedure for other servers---i.e. by adding it to the
    config(ubb) file. If so, can I implement the background process as two
    different CORBA servers calling each other asynchronously to accomplish
    the work. Please let me know if there is any other way to accomplish
    what I have stated in the "background process" question.
    Thanks,
    Ram Ramesh
    678-358-3581

    Go to your forum preferences and set the email options.  You may also need to unsubscribe from forums / topics you are currently subscribed to.

  • Premiere rendering text with question mark

    my Premiere rendering text with question mark. it looks fine at first but then it changes. Ow! the text file is a after effects files that I opened up in premiere.

    thats okay i found the problem. it was the text in after effects. the box around the text was to small.

  • OLAP Universe creation process questions and proposals

    We have created an OLAP universe based on a BW-Query. The automatical creation of the OLAP universe does not produce a satisfying result.
    We are working with the latest available releases (BOE XI 3.1 SP2 and SAP Integration KIT SP2, SAP BI 7 EHP1).
    We have detected that all dimension objects store the name instead of the key field.
    Example:
    Customer Dimension Object (L01 Customer) = Customer Name
    Customer Key Detail Object (L01 Customer Key) = Customer Number
    Customer Name Detail Object (L01 Customer Name) = Customer Name
    This is not usable for end user because of the following reasons:
    1. The detail objects can not be used for merge dimensions, so it is not possible to merge on the supplier number.
    2. If you filter on the dimension object you will only see the text in the list of values (LOV) and it is not possible to edit the list of values in the universe to add the supplier number to the LOV as it is possible in relational universes
    3. If the user select the detail object always the dimension object in inserted into the report query
    4. The "Business Explorer" general setting "Display" of an InfoObject has no effect on the OLAP universe dimension object. If you change it to key always the text is shown. Even if you change the "ValueDisplay as" in the underlying BW Query to "key" is has no effect.
    5. The renaming of the L01 object to blank is not possible. You need to rename to " " and then remove on each object the blank.
    So we need to modify manually every universe to change the "detail key object" to a "dimension object" and the "detail name object" to reference the new "dimension object" with the key. This manual process has a huge work effort in time. Is there a better solution or enhancements planned in the next releases?
    Additionally there should be an option to disable the automatic creation of each characteristic as a subclass in the universe. A wizard should ask if a subclass should be created or not for each characteristic. Currently there are to many subclasses generated which were mostly not needed.

    Hi,
    First of all I would say u are lucky to start with SP2. Because whatever modifications you do in Universe those are retained.
    We had a big trouble in using BOXIR3.1 FP1.7.
    Anyways.. Back to your Questions and My asnwers for those:
    1. The detail objects can not be used for merge dimensions, so it is not possible to merge on the supplier number.
    Ans: True, Dimension object always shows Short text values by default. but if you can create the logic at SAP BI query level to map short text with keys then your problem will be solved.
    2. If you filter on the dimension object you will only see the text in the list of values (LOV) and it is not possible to edit the list of values in the universe to add the supplier number to the LOV as it is possible in relational universes.
    Ans: True u cannt edit LOV, but alternate solution to it is create the variable in SAP BI Query, that will appear as prompt in universe which will display the List of values with Key as well as Description.
    3. If the user select the detail object always the dimension object in inserted into the report query.
    Ans: Logically its correct, because Detail object is always associated with Dimension. Buit if you dont want that dimension in query you can remove that dimension by dragging back.
    4. The "Business Explorer" general setting "Display" of an InfoObject has no effect on the OLAP universe dimension object. If you change it to key always the text is shown. Even if you change the "ValueDisplay as" in the underlying BW Query to "key" is has no effect.
    Ans: In Query designer even if you ValueDisplay as "Key", but at Object level  if there is Text and Key associated for perticulat Infoobject, then so by default the dimension will show the Text and there will be seperate Detail object in universe for Key.
    5. The renaming of the L01 object to blank is not possible. You need to rename to " " and then remove on each object the blank.
    Ans: Yes this is a big trouble.
    Regards,
    Nisha

  • Table cell - text formatting question

    Can't seem to find how to do this. I changed the marging of
    the box to 5 pixels. That only seems to effect a sentence after a
    hard-break. It does not effect soft-breks/returns.
    I'd like every line in the cell to be 3 pixels from the left
    border.
    Thx!

    Not enough. Code from Main.css please.
    (Link to the actual page is always best. This is a
    user-to-user forum, No
    one is paid to be here. The easier you make it for us to see
    everything the
    more likely you are to get help.)
    Walt
    "JRStaf4ord" <[email protected]> wrote in
    message
    news:[email protected]...
    > Here is the code for assistance -- thank you all!...
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > <script src="Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > <link href="Main.css" rel="stylesheet"
    type="text/css" />
    > <style type="text/css">
    > <!--
    > .style1 {
    > font-family: Tahoma, Arial, "Lucida Console",
    sans-serif;
    > font-size: 14px;
    > line-height: 21px;
    > color: #000000;
    > background-position: center center;
    > margin: 5px;
    > text-indent: 5px;
    > white-space: normal;
    > vertical-align: text-top;
    > text-align: left;
    > visibility: visible;
    > display: inline;
    > background-color: #FFFFFF;
    > background-image: none;
    > background-repeat: no-repeat;
    > padding-left: 5px;
    > }
    > a:link {
    > color: #663300;
    > }
    > a:visited {
    > color: #999999;
    > }
    > a:hover {
    > color: #669900;
    > }
    > a:active {
    > color: #663300;
    > }
    > .style4 {
    > font-family: Tahoma, Arial, "Lucida Console",
    sans-serif;
    > font-size: 10px;
    > color: #9BB674;
    > }
    > body {
    > margin-left: 2px;
    > }
    > .style5 {color: #663300}
    > .style9 {color: #663300; font-size: 18px; }
    > -->
    > </style>
    > </head>
    >
    > <body>
    > <table width="700" border="1" align="center"
    cellpadding="1"
    > cellspacing="0"
    > bordercolor="#FFFFFF" bgcolor="#FFFFFF"
    class="style1">
    > <tr>
    > <td width="150" bgcolor="#FFFFFF"><script
    type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','150','height','140','title','Flash
    > Logo','src','Images and
    > Video/Pic3','quality','high','pluginspage','
    http://www.adobe.com/shockwave/downl
    >
    oad/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Images
    and
    > Video/Pic3' ); //end AC code
    > </script>
    > <noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="150" height="140" title="Flash
    Logo">
    > <param name="movie" value="Images and Video/Pic3.swf"
    />
    > <param name="quality" value="high" />
    > <embed src="Images and Video/Pic3.swf" quality="high"
    > pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
    > n=ShockwaveFlash" type="application/x-shockwave-flash"
    width="150"
    > height="140"></embed>
    > </object></noscript></td>
    > <td colspan="3"
    bordercolor="#FFFFFF"><p><img src="Images and
    > Video/Banner2.gif" alt="Stafford SBSG Small Business
    Consulting Banner"
    > width="738" height="122" /></p></td>
    > </tr>
    > <tr>
    > <td height="170" rowspan="3">Web
    Marketing</td>
    > <td colspan="3" align="left" valign="top"
    bgcolor="#CCDBB6"><h1
    > class="style5"><br />
    > <span class="style9">Business
    Plans</span></h1>
    > <p align="left">Entrepreneurship can be exciting
    and rewarding,
    > but
    > you must be prepared and
    > committed. Careful planning is fundamental to success. A
    well
    > written business plan is
    > essential in acquiring financing, managing growth, and
    beating the
    > competition. Like a
    > budget, it is a work in progress that should be
    maintained and
    > referred to on a regular
    > basis. From the Executive Summary to the Appendix and
    everything
    > in-between,
    > Stafford SBSG can help you create an integrated business
    plan
    > that
    > contains all the
    > essential elements to help you achieve success.
    > When developing your business plan, Stafford SBSG is
    very
    > ?hands-on?, asking
    > questions, challenging your assumptions and designing a
    plan
    > that is
    > customized
    > for
    > your business.</p> </td>
    > </tr>
    > <tr>
    > <td colspan="2" align="left" valign="top"
    bgcolor="#CCDBB6"><br />
    > A typical development process includes interviews of
    management,
    > strategic market research and analysis, mid-project
    status
    > check,
    > plan draft, client
    > feedback and revisions, and finalization.
    >
    > If you already have a basic plan, but need to include
    additional
    > elements to enhance
    > your ability to acquire financial backing, identify
    growth
    > opportunities, or communicate
    > with your employees, Stafford SBSG can assist you in the
    areas
    > of
    > Market Analysis,
    > Company Description, Organization and Management,
    Marketing and
    > Sales
    > Management, Product Description and Funding Request
    Presentation.</td>
    > <td align="left" valign="top"
    bgcolor="#CCDBB6"><img src="Images and
    > Video/BizPlan1.jpg" alt="Business Plan Development
    Strategy" width="327"
    > height="203" /></td>
    > </tr>
    > <tr>
    > <td colspan="3" align="left" valign="top"
    bgcolor="#CCDBB6"> <br />
    > If you have created a comprehensive plan and would like
    an
    > independent
    > analysis to
    > identify gaps or inconsistencies, Stafford SBSG can
    review your
    > plan
    > and provide you
    > with a written report ?that includes suggested changes,
    revisions or
    > additions.</td>
    > </tr>
    > <tr>
    > <td> </td>
    > <td
    width="361"><p> </p></td>
    > <td width="113"> </td>
    > <td width="261"> </td>
    > </tr>
    > <tr>
    > <td bordercolor="#CCDBB6"> </td>
    > <td colspan="3" align="center" valign="top"><p
    align="center"
    > class="style4">Stafford SBSG: Annapolis MD,
    410.280.9618 and Wintergreen,
    > VA
    > 434.325.1439<br />
    > Web Marketing - Marketing Analytics - Marketing Plans -
    Business
    > Plans -
    > Compensation Plans - Financial Management - Human
    Resources</p> </td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >
    >

  • General Ledger - Revaluation/Translation Process Question

    Application Release Version: 11.5.10.2
    MRC: Not turned on for new entities. (See details below)
    My customer has been using oracle from around 2001 and went through a process at the end of 2008 to setup a new chart of accounts and approx 6 different companies with multiple entities for each across different functional currencies. (The initial setup for these entities was done prior to my joining and I have no supporting documentation on what decisions were made and why.)
    Setup info:
    Set of Books - 'Cumulative Translation Adjustment Account' defined as an 'Owners Equity Account'.
    Revaluation - Gains and Loss accounts using the same account number as 'Cumulative Translation Adjustment Account'. Accounts being revalued are accounts that have outstanding Payables and Receivables balances as well
    as our intercompany accounts that have outstanding balances. (Balances that need to be payed or received.)
    Question:
    My question refers to the revaluation and translation process for the new entites that have a different functional currency from the reporting currency. (All under the same chart of accounts structure.)
    For instance entity1 - Functional Currency = 'CAD' and has 'USD' transactions.
    I understand that at the period end we need to revalue the 'USD' transactions to there 'Current' worth in 'CAD' as exchange rates will fluctuate. But shouldn't the 'Difference', revaluation amounts, be pushed to the Unrealised FX Gains/Loss account, not the 'Cumulative Translation Adjustment Account'. (I think this is normally only used when a company is using MRC?)
    This obviously affects whether the period balance appears on the Balance Sheet or Income Statement report for the consolidated monthly report.
    Also should these 'Revaluation' journals ever be reversed or just left to accumulate?
    Then looking at the 'Translation' process, if value is pushed to the 'Cumulative Translation Adjustment Account' then the balance is translated based on the 'Average' period rate as the account is an 'Owners Equity Account', but this seems wrong for the 'Revaluation' balance to be converted at another rate?
    Any help on this subject will be greatly appreciated.

    Firstly, why would there be any difference between the total of customer/vendor sub-ledger balances and the balance on the reconciliation account(s)?  The posting to the reconciliation account is happening automatically right, when you are posting to a customer/vendor (basing on the reconciliation account assigned in the customer/vendor master)?  And system would not allow direct postings to reconciliation accounts, which eliminates the threat of reconciliation GL account going out of balance as compared to the sub-ledger accounts.
    However, you can run FBL3N or FS10N for the reconciliation account(s) and match it with the total balance on all customers/vendors using transaction FBL5N/FBL1N.

  • Snow Leopard Time Machine process question/possible problem

    For starters I want to say that I am not dealing with my own machine, but a friend's, so there's some missing information. Any help would be greatly appreciated!
    Ok, so my best friend bought a 15" MBP thru me during my short time as an Apple retail employee, which is how I got called in to "fix" it, although I'm still better with PCs than Macs. Anyway, it was purchased around December 2010, has at least Snow Leopard, intel i5 processor, 500 GB HD, not sure if 5000 or 7200 rpm, 4GB RAM. A day or so ago it started acting "weird" he says, like when closing google chrome the color wheel spun forever and took forever to close, and from then on every program acted the same; took forever to open and close. He said it was like there was some major process running in the background that was just using up all of the RAM and processor, leaving him with nothing to use for anything else. He shut it down and restarted it several times, but it acted the same. Sometimes he'd even have to force power it down. He then decided to do a wipe and restore with Time Machine. Thanks to google images I know for sure that he went thru all the bs with selecting what exactly to do, what restore to use, and where to install it, and that the transfer screen with the finder-to-fnder-like image and the progress bar appeared and completed fully before it automatically restarted itself. White screen with Apple logo appeared, he heard the boot up chime/BONG/WALL-E noise before the spinner wheel came up under the logo, which is where it stands now.
    The only question/concern is that it has been here for 10 hours, literally. Now the spinner is STILL spinning, that has not frozen that either of us are aware of, but both of us being so new to Macs we are completely unsure if it's ok. I did some online research and I've seen where people have had their macs freeze on boot up, but they usually don't chime; or it took like 14 hours to do the entire restore process, but they were significantly older and slower machines. Like I said, this could be status quo for this process, but I honestly do not know that. Feel free to just say "depending on the amount it's restoring, it could very well take that long, be patient" if that's the honest truth. I'm looking for verification.
    PS - his time machine backup is on an external USB hard drive, which is plugged in, and it's from November as he forgets to plug it in, but he has like photoshop and aperture, takes lots of pictures (yes we know those since November are gone), and honestly is on his MBP so much the only way I can think to describe it is that he literally uses it like a cheap whore.
    Thank you all!

    delete all drivers using the correct un-indtstall software, re-instalthe mac softeware and in stalll. GO TO SYSTEM PREFS, and select the printer and add the printer to the left side for install
    , then select that partictular printer.

  • Toshiba A105 BIOS Recovery Process Questions

    Hi!
    Ive got a Toshiba Laptop A105-S4284, Model #: PSAA8U-0FH02K that froze while trying to flash the BIOS. Now, when I try to boot it up, it gets stuck in the same place it did during the flashing; on the Toshiba splash screen with the status bar at the bottom showing about 20% complete. Options available on this screen are: Press F2 for System Settings and F12 for Boot Menu. Pressing F2 results in a beep and the status bar is replaced with the text "Please Wait..." but nothing else happens no matter how long I wait. Pressing F12 doesnt do anything. Pressing ESC takes me to a screen that shows the typical system info -- Phoenix Technologies Version 6.00; Intel Calistoga CRB.T3A Reference BIOS; VERSION.MAK 1.53. It looks like its at least partially POSTing since it shows CPU, Cores, No TPM or TPM has a problem, and system RAM and stops there. I cant get into the BIOS and cant boot into Windows.
    Ive read the posts on here regarding the BIOS Recovery Process and was hoping someone could provide some clarification for me, especially since Ive already waited a week with no reply on another tech support site forum. :-(
    Anyways... Ive downloaded the Crisis Recovery.zip files to create a Recovery Disk and am trying to follow the instructions.
    There are a bunch of files in the .zip and Im not sure exactly which files I need to have on the boot disk Im creating.
    The files in the .zip are:
    - crisboot.bin
    - CRISDISK.BAT
    - makeboot.exe
    - minidos.sys
    - phlash16.exe (actually PHLASH16 version 1.6.5.4)
    - wincris.exe
    - wincris.hlp
    Ive downloaded the BIOS Update from Toshibas website for the A105-S4284. Which file do I need to rename to BIOS.WPH and add to my Recovery Disk directory? Do I want "s10gm600.rom" or "1988d600.ima"? I extracted the file from the bootable BIOS installation diskette (1988d600.exe) to get the 1988d600.ima file.
    I ran wincris.exe and only the following files end up in the directory Ive designated for my Recovery Disk:
    - BIOS.WPH
    - MINIDOS.SYS
    - PHLASH16.EXE
    Do I need any of the other files from the original .zip?:
    - crisboot.bin
    - CRISDISK.BAT
    - makeboot.exe
    - wincris.exe
    - wincris.hlp
    If someone could provide some clarification on which files to use and most importantly, if those are the correct files for the laptop Im trying to fix. I think all the posts Ive read are for laptops newer than this one and it seems the secret to succeeding at recovering a BIOS is using the CORRECT files. Ive searched all over and cant find any posts from someone with an A100/A105 who has been able to do a BIOS Recovery from a CD, USB floppy or USB flash drive.
    Is there ANY hope?
    Thanks in advance for your time and assistance with this; its GREATLY appreciated. 
    Sarah ;-) 

    Hi Sarah,
    I had the same thing happen to my A105 4094.  I've looked at some of the other blogs, but I'm not sure if I should try the corrective action they suggest.  Not sure how common the different models are. 
    I'm going to keep trying to resolve this.  If I find something that works, I'll write again and let you know.  Please do the same for me and other A105 owners.
    Thanks,
    Jamie

  • Exception Processing Question -Reply

    I don't use Forte (yet--that's why I joined the mailing list), but since your
    question is a generic "engineering practices" question, I'll chime in. I do
    use exceptions both in C++ in Delphi, and have developed some opinions
    about how to use them:
    - Use exceptions for handling "behavior unexpected in the normal course
    of your algorithm". In other words, instead of returning error codes
    when something goes wrong, throw an exception.
    One example of this is in a parser: if you get an illegal token, just throw
    an exception.
    - When you need to make a choice based on a return status, don't throw
    an exception. In the parser example, if you get token 'A', you need to do
    one thing and if you get token 'B' you need to do another.
    - There's a fine distinction between "handling an error" and "making a
    choice", and there are cases where you could argue one way or the
    other. I'd say that an error throws an exception when it would normally
    terminate the normal flow of execution. For example, "out of memory" or
    "illegal token".
    - Catch exceptions at "high level" process start/end points, or where it is
    required to clean up resources held and rethrow.
    - Don't catch exceptions in every single method--it defeats the purpose.
    User Interfaces:
    - If your user-interface dictates a logical place to unwind no further,
    catch exceptions there. For example: In the Windows world most apps
    are a window with a menu. If you pull down and pick a menu item to
    execute a command, and that command throws an exception, the
    exception should be caught, a modal message box indicating the error
    should be presented, and then when the user clicks "ok", the program
    returns to its normal waiting state with the window intact.
    - If you have a modal dialog up, throwing an exception should either stop
    at the dialog's event loop or take the dialog down with it.
    I'd say that on-screen data validation should NOT use exceptions
    because "user typing invalid data" is expected behavior for a UI.
    Besides, the UI designer should be smart enough to deal with giving you
    a good model for data validation. OTOH, if you take the data out of the
    dialog and then pass the information as parameters to a function, and
    that function can't handle one of the parameter values, it should throw an
    exception.
    Nevertheless, if your dialog runs out of memory for some reason, it
    should throw an exception and the dialog should come down.
    Hope this helps.
    -- Conrad Herrmann
    Jerry Fatcheric <[email protected]> 07/24/96 03:29am >>>
    I have a toss up question for 50 points -
    We have finished the first phase of our project and have place
    exception processing in the places where we saw exceptions could be
    raise. But what about those other exceptional exceptions?
    Is this just good programming practice to have a high level generic
    exception handler (and what should it really do??) or is it critical.
    In addition, when handling data validation on specific widgets on a
    screen (e.g. the account number entered must be one of the existing
    10,000 valid ones), should this be handled via exception processing or
    should it just be handled with code in the event loop?
    Any opinions - please I don't want to hear the Forte Party line.
    I would like to hear opinions based upon real experience.
    Jerry Fatcheric
    Relational Options, Inc.
    Florham Park, New Jersey
    201-301-0200
    201-301-00377 (FAX) [email protected]

    We have finished the first phase of our project and have place
    exception processing in the places where we saw exceptions could
    be raise. But what about those other exceptional exceptions?
    Is this just good programming practice to have a high level
    generic exception handler (and what should it really do??) or
    is it critical.IMHO, you need to program for these ones that could occur because
    if you don't the exception will still happen except without
    your normal graceful (or standard) approach manner. I think it is good programming
    practice to trap on the ones you think can possible occur if they require
    something different in how they react. Otherwise, use of GenericException
    with a proper response is called for.
    >
    In addition, when handling data validation on specific widgets
    on a screen (e.g. the account number entered must be one of the
    existing 10,000 valid ones), should this be handled via exception
    processing or should it just be handled with code in the event loop?
    I use event loop processing because most of the time I am also
    keeping the user on the same widget after cancelling all events
    posted. So, in effect they are back where they started from.
    Any opinions - please I don't want to hear the Forte Party line.
    I would like to hear opinions based upon real experience.
    Jerry Fatcheric
    [email protected]@Sagesoln.com
    my 2 cents, or should I say my attempt at 50 points, Jerry.
    Len Leber
    ATG Partners

  • [BPM] Screenflow and Killing Interactive Process Questions

    Hi Guys,
    I have the following questions:
    1. How to kill an interactive activity? I tried to kill a process in an interactive activity via PAPI but it throws an exception:
    samplePAPI.activityAbort(target.getActivityName(), target.getId());
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: Operation exception.
    faultActor:
    faultNode:
    faultDetail:
         {http://bea.com/albpm/PapiWebService}OperationException:<message>Operation exception.</message>
    Operation exception.
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    2. How to close a custom JSP in a screenflow through javascript. I have a cancel button which once clicked it will close the window.
    I hope someone can help me out with this.
    Regards,

    Hi,
    Sory, but I'm still not sure, how ADF comunicates with BPM (I know that it uses EJB services and hwtaskflow.xml). But a still don't have an answers for follwowing questions:
    1) I know ADF quite good. Having method in data controls (in our case getTaskDetails()) we need to invoke it somehow. I don't see anywher invokation of this method.
    2) In generated task flow there is some managed beans and params - what is role of them ? Having over 50 task flows , do I need it in all of them. Where can I find description of those beans and params
    3) In our approach we use BPM , ADF RC for UI and Business Components to persist data into database. Only data from payload we need is ID of master-level row. My question is - do I have to generate data controls for all human task ?. In my my opinion it should be only one communication point between BPM and ADF but not the same for all pair human task --> task flow.
    All infomation I need from BPM is:
    - task ID
    - task flow name (to open apriopriate tab in my application)
    - available outcomes
    - to know is BPM operation is enabled
    Kuba

  • Pages Text Box Question

    Can I create a text box in Pages that can automatically scale vertically to fit the text inside?
    I'm trying to create a modular element for a template that someone can paste any amount of text into without having to manually change the vertical scale of the text box.

    Answered my own question.
    Instead of creating a text box, create a table cell.

  • Text field questions: 1. Scrolling 2. Multiple Lines

    Hello,
    I am creating a form with Adobe LiveCycle Designer 7.
    I have two questions:
    1. When I have a text field, and I enter the text in the PDF view, it will keep going until I stop. This causes the text field to become a scroll box. How do I stop that? I want the text to stop when there is no more room left. I understand there is a length limit, but that mean I have to count the number of characters, and also estimate as to what amount off room each character takes. For example, 'i' takes a lot less room than 'Q' with the default font.
    2. I want my text field too look like this:
    TEXT FIELD: ____________________________________
    How do I do that? I can only get the caption to, when set to left, be in the middle of the field. Also I cannot see the literal 'multiple lines'.
    Thanks a lot!

    I have answer for the first question....all you need to do is copy the following JS code to enter event of each field that you have trouble with.
    var acroSOM = this.somExpression.substr(15, this.somExpression.length - 1);
    var acroField = event.target.getField(acroSOM);
    acroField.doNotScroll = true;
    I doubt there is an answer other than NO (in LC 7) for your second question.
    Good luck,
    SekharN

  • Text processing

    Hi All,
    Please let me know if there is way to remove spaces that are occuring between words/characters not between numerics in a given string/text using regexp_replace.
    Eg.
    'PERSONNEL_AREA_CD1  =     03-06-2013 09:07:01      to      30-10-2013 09:07:01   ' should be processed as below
    'PERSONNEL_AREA_CD1=03-06-2013 09:07:01to30-10-2013 09:07:01'
    Thanks !
    DS

    Hi,
    We can even use TRANSLATE function.
    with data as
    select  'PERSONNEL_AREA_CD1  =     03-06-2013 09:07:01      to      30-10-2013 09:07:01   ' str from dual)
    select str,translate(str,'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:_-=~!@#$%^&*()+|}{"?><`\]['''';/., ','ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:_-=') output from data ;
    Output of above query is:        
    STR                                                                                                                                           OUTPUT
    PERSONNEL_AREA_CD1  =     03-06-2013 09:07:01      to      30-10-2013 09:07:01            PERSONNEL_AREA_CD1=03-06-201309:07:01to30-10-201309:07:01

Maybe you are looking for

  • F110 without posting

    Hi SAP Gurus, Is there any chance to execute payment run without postings in F110? Actually, I want to create payment proposal, export DME file to bank and run payment without any postings and clearing and afterwards we will do postings and clearing

  • Question about Linksys G Wireless Router and i cant connect my iPod Touch and PSP to it.?

    I just got a new Wireless router and it works fine.The model number is WRT54G2. The internet is working and I can go on my xbox live and things like that. The only problem is that my iPod touch and things and my PSP can detect the connection but are

  • Pixels Missing when I continuously rasterize AI layer

    Hi, I am having trouble finding a solution to my exact problem on other forums. I'm using After Effects CC and have imported all of the files from Adobe Illustrator CC. For some reason, when I click the "continuously rasterize" option for some of the

  • Aironet 1600 privilege level for MAC Filtering

       Hi, I want to permit from a user profile with the telnet CLI command to configure the new MAC address on the dot11 association mac-list 700 I have create the user 14 with the followed commands: enable secret level 14 5 ************** enable secret

  • Finger print recognition stops working after a few uses with IOS 8

    Why does my finger print recognition stop working on my IP6 and IOS 8.1.2 after a few uses. I re-enter finger prints and it stops working again after a few uses.