Disable Begin/End Editable
Hello,
I am building a template engine with PHP that is based on
DWs' <!-- #BeginEditable "Edit Page Content" --> and <!--
#EndEditable -->
How can I make Dreamweaver ignore this? Now that I've used it
in the code, I can no longer edit the second half of the page!
I really need this to be disabled. Thanks!
One way would be to detach the child page from the template,
thereby losing
all advantage of templates for that page, and increasing the
effort to keep
the site updated. I don't recommend that approach.
What is it that you are trying to accomplish here?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"High Velocity Media" <[email protected]>
wrote in message
news:f9ivrf$fbl$[email protected]..
> Hello,
>
> I am building a template engine with PHP that is based
on DWs' <!--
> #BeginEditable "Edit Page Content" --> and <!--
#EndEditable -->
>
> How can I make Dreamweaver ignore this? Now that I've
used it in the code,
> I
> can no longer edit the second half of the page!
>
> I really need this to be disabled. Thanks!
>
> $html = $this->_ReplaceTemplateTags(
> '<!-- #BeginEditable "Edit Page Content" -->',
> '<!-- #EndEditable -->',
> '%%PAGE_CONTENT%%',
> $fileData,
> $html
> );
>
Similar Messages
-
How to start a trigger in a begin/end block ?
Hi all, I need to start a trigger inside a block begin end in order to manage errors.
The trigger is created inside trigger_faef_c.sql as
CREATE OR REPLACE TRIGGER TRIGGER_FAEF
and I would like to start the trigger in another file "create_trigger.sql" with this format:
BEGIN
@trigger_faef_c;
EXCEPTION WHEN OTHERS THEN
dbms_output.Put_Line('#255#> Error in trigger_faef_c ' || Sqlerrm );
END;
I have this error executing the script:
PLS-00103: Encountered the symbol "@" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
The symbol "<an identifier>" was substituted for "@" to continue
Can anyone help me please ?
I have to use EXCEPTION WHEN OTHERS THEN.
Thansk
ErikHi Erik,
I think you mean Create the trigger(?), i.e, executing the trigger_faef_c.sql script.
SQL*Plus doesn't have exception handling (Someone please correct me if I'm wrong).
One way to circumvent that is to rewrite the script itself to PL/SQL. Something like:
Declare
stmt varchar2(32767);
Begin
stmt := 'Create Trigger ....';
Execute Immediate stmt;
Exception
When Others Then
--Do what?
End;
/And then just execute that
@trigger_faef_c.sqlDon't know if you want to go that way. I use it myself to be able to run the same deployment scripts multiple times, without causing various failures due to "Table Already Exists" and so on.
But, for triggers, I would never do that, since this has CREATE OR REPLACE.
For triggers, I just (This time script is plain static SQL)
WHENEVER SQLEXCEPTION CONTINUE
SPOOL deployment.log
@trigger_faef_c.sql
@other_script.sql
SPOOL OFF
EXITRegards
Peter -
AA6 - Move To Beginning/Ending Of A Selection And Deselect
Hello...
In AA3- you could make a selection, then click at the beginning/ending of the selection. It would deselect the selection and move the play head to that position.
In AA5.5 you had to use the left/right arrows to do the same task.
In AA6, neither work. If you left/right arrow, the play head moves but it moves down/up the timeline (not to the beginning/ending) and it doesn't deselect. Ctrl+left/right arrow does move the play head to the appropriate places (as well as other places) but it doesn't deselect.
Is there a way to do this with AA6?
I used it a lot when doing track breaks for cd (home, shift+click at 5:00, f8, right arrow, shift+click at 10:00, f8, etc...). I also used it where I wanted to have only 0.5 seconds of extra silence at the beginning/ending of some audio (click at the beginning of the audio, drag backwards 0.5 seconds, left arrow, shift+home, delete).
JJSince you're doing this for CD, I think I have a method that would be faster for you.
1. Home, Shift+M (This sets the playhead to the start and places a CD Track Marker at the playhead).
2. Click where you want this track to end and the next to start and again press Shift+M.
3. Continue placing single point CD Track Markers at each location where you want the last track to end and the new one to start (including adding one to the very end).
4. When all markers have been added, open the Markers Panel and select all the markers.
5. Press the icon in the Markers Panel for "Merge selected markers".
Now if you want to burn the CD, just go to "File > Export > Burn Audio to CD..." and we will burn a CD with track markers where you hae defined them.
--Ron -
Adding a blank row to a JTable when a user begins to edit a current row
Hi, this may be a daft question, but I've been looking through the forum and didnt find anything that really helped me. So I'm posting this in the hope someone will be a ble to point me in the right direction.
In my current application I have a JTable. It currently contains a single emptry row. What I wish to happen is when a user begins to edit that empty row a new blank row is added to the bottom of the table.
I'm using a custom table model, as there maybe data loaded from a Oracle database at a later date and have included an "addRow()" method which will add the blank row.
What i'm struggling with is a way to detect when the user has started to edit the blank row and so when to call my "addRow()" method.
I tried experimenting with propertyChange listeners but they didnt seem effective. Could someone please provide me with either a solution or a pointer in the right direction.
Thanks for your helpWhat I wish to happen is when a user begins to edit that empty row a new blank row is added to the bottom of the table.Well a user could start to edit the last row, but then they could use the escape key to cancel the cell editing. So I would only add the empty row once a cell has actually been updated.
For this I would use a TableModelListener. The listener will only fire when the data in a cell is changed. So once the event is received you simply check if the row of the edited cell is the last row of the table. -
Need to disable the insert edit in Timeline.
I'm piecing together a video to music right now and am finding that, when I drop and drag clips from the viewer to the timeline, I accidentally use the insert edit, only to find later on that some of my clips have been unknowingly moved around. Is there any way to disable the insert edit arrow in the timeline and only have the overwrite edit arrow active?
Thanks!If you prefer dragging directly to the timeline, then you'll need to pay attention to where your mouse pointer is located in the appropriate video track before you release the mouse button. If you look at an empty video track, you'll notice a line that runs just above the center of the track. If you drag a clip and your mouse is above that divider line, you'll perform an Insert Edit, if your mouse is below that divider, then you'll perform an Overwrite Edit. You'll see the mouse pointer change indicating the edit that you're about to perform.
From the FCP Users Manual:
http://dl.getdropbox.com/u/19589/Timeline%20Edit%20Zones.png
I will second the advice that was already given, performing edits with the keyboard or the Canvas overlays is MUCH more accurate than dragging directly to the timeline. -
User not disabled after end date (9i)
Hi All,
The Disable after end date schedule task disabled 7 users but did not disable 1 user.
Any know issue around this.
Thanks
DonHi Gyanprakash,
i can not try disable manually, its in production. The log for disable user is commented in log.properties. Can not change that .
Just need to analyze, why this user was left out.
Regards
Don -
SQLplus command in a begin/end block
Hi all,
is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?
thanks in advance and regards
Johnuser10899797 wrote:
is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?Just a quick explanation why not.
That begin..end block is called an anonymous (nameless, unlike a procedure or function) PL/SQL block. The client (in this case, SQL*Plus) transmits the block to Oracle.
The server process servicing that client receives the block, parses it and executes it.
This server process only understands SQL and PL/SQL. Not any language.
So just as you cannot use .Net/Cobol/Visual Basic/Java/etc commands inside that PL/SQL anonymous block, you cannot use SQL*Plus commands in it.
Part of the confusion regarding SQL*Plus is using substitution variables. This enables you to create an anonymous PL/SQL block in SQL*Plus that contains substitution variables.
However, SQL*Plus itself does a very primitive parse of that block before it fires it off at the server - it detects these substitution variables and replace them with the assigned values for these variables. It then transmits this resulting block to the Oracle server for parsing and execution.
Just remember that PL/SQL is a server-side language that runs inside an Oracle server process and that should clear most confusion in this regard (including whether PL/SQL can read keyboard data or write to a client PC's harddrive, or interactively display progress status on a client monitor). -
Visual indicators at beginning/end of clip or sequence?
In cs6 is there any sort of visual indicator to let you know that you are at the beginning/end of a clip or sequence? Anyone familiar with FCP, I'm look for something equivalent to the L shape or blue line that appeared at the beginning and ending of clips and sequences.
Thanks.You could use "show head and tail " here:
http://help.adobe.com/en_US/premierepro/cs/using/WS3E67AF4C-B2A2-4f04-90B4-F8CCFB74B144.ht ml
under the heading:
Set the display style of the video track -
Error in Delare/Begin/End block
Dear all
i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
I should say that using the structure delcare,begin,end is mandatory for me here.
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;but i get this error
Error starting at line 3 in command:
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;
Error report:
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
So would you please rewrite the query?
im using oracle 11.2.0.2
thank you in advance.
best,david1003209 wrote:
Dear all
i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
I should say that using the structure delcare,begin,end is mandatory for me here.
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;but i get this error
Error starting at line 3 in command:
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;
Error report:
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
So would you please rewrite the query?
im using oracle 11.2.0.2
thank you in advance.
best,davidHi David,
The query will throw error if the schema where you are executing has more than "1" function or procedure in the system.
Its not clear in your requirement.
Assuming you want to display the output
SQL> set serveroutput on
SQL> DECLARE
2 CURSOR cur_obj IS
3 SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE
4 FROM user_arguments ua
5 join user_objects uo
6 on ua.object_id=uo.object_id
7 WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
8 BEGIN
9 FOR rec_obj IN cur_obj LOOP
10 dbms_output.put_line('OBJECT_NAME:'||rec_obj.object_name||' '||'ARGUMENT_NAME:'||' '||rec_obj.a
rgument_name||' '||'OBJECT_TYPE:'||rec_obj.data_type);
11 END LOOP;
12 END;
13
14
15 .
SQL> /
OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: OBJECT_TYPE:NUMBER
OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: REGKEY OBJECT_TYPE:NUMBER
OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: PARTNERKEY OBJECT_TYPE:NUMBER
OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME: OBJECT_TYPE:NUMBER
OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME: ACCOUNT_KEY
OBJECT_TYPE:NUMBER
OBJECT_NAME:SUMCONCAT ARGUMENT_NAME: OBJECT_TYPE:VARCHAR2
OBJECT_NAME:SUMCONCAT ARGUMENT_NAME: INPUT OBJECT_TYPE:VARCHAR2
OBJECT_NAME:GSK_PB_SHOW ARGUMENT_NAME: OBJECT_TYPE:NUMBER
...........Regards,
Achyut K -
Sequence of begin/end blocks.Delete only if updated.Updte only if row exist
Here is a sequence of events I need to perform.
1) I need to update a table with the systime for a given id.
2) Commit (so that the systime is stored before I delete)
3) Once updated, delete row from that table for the given id so that the row moves to the audit table with the updated systime - added in step 2.
For this I need to keep the following things in mind:
a) Update only if that particular id (passed as IN parameter to the SP) exists. That is validate existence before updating/deleting.
Here are questions ralted to the above scenario:
1) How is this kind of validation usuallty performed?
2) Update and delete will be in 2 separate begin exception end block?
Example
begin
begin
update...
commit
exception
rollback
end;
delete...
commit
exception
rollbacl
endHowever if update fails for some reason, I do not wish to come to the delete option.
How can I take care of that?
Edited by: [email protected] on Oct 20, 2008 9:47 AM
Edited by: [email protected] on Oct 20, 2008 9:48 AMMass25 wrote:
The reason why I commit after doing the update is so that when I delete, what I have updated goes to the audit table.But that would only be necessary if it was a seperate session trying to read the data.
If you update data on a table then your own session will see that data at existing on the table whether you have committed it or not, whilst other sessions will only see that data once it is committed.
A commit should be issued when it logically makes sense, not just to try and ensure that the data is on the table for yourself.
What would happen if you update some data, commit it, someone else reads it in their session and then you go and delete it? They have read your updated data whereas if they do a read before you delete then it's more logical that they should have read the pre-updated data.
It seems like you are trying to incorporate more steps than are necessary to perform a simple task. -
Report to show beginning-ending stock on certain dates(as MB5B)
Hello to everybody,
we have this requirement:
MB5B should create a list with the items that are shown on the header part of the list . These items are shown when we tick the field XSUM. This list should be in format of report or alv , in order to be easily transfered to EXCEL.
We can do that with a Z report, by I wonder if there is any other report from which we can derive those totals, meaning the beginning stock on certain date, and the total stock at the end of date. MB51 does not include the beginning stock.
Thanks,
Irenehi,
MB5B and MB51 are std and fullfill report for stock and valuation in SAP. if your requirement is not ful fill with this report then need to take ABAP help and copy MB5B report program and make required Z report as per your requirement. no issue.
regards,
sans -
How can I disable the end of call notification or at least turn it down?
On my Droid Turbo, At the end of a call there is a big loud beep. (end of call notification) I need to disable it or turn it down because on headset it is deafening. I had this exact problem on the HTC One M8 and now with the Droid Turbo. My wife's Samsung S5 has an option to disable it and I believe the LG G3 has an option to disable it. IT isn't a problem except on headset or over hands-free in the car. It is intolerable when I have to turn up the phone to hear a caller. Please help soon as my 14 days are running out and I will likely have to trade in this phone Droid Turbo in for the LG. Verizon technical support is no help at all.
Thank you for replying Amber, it is a little more than annoying, it is a safety hazard. Tinnitus is not a fun disease and this problem can be a contributing factor.
Yes the end of call notification (loud beep) does occur at the end of every call. And an end of call notification can be a good thing. But missing it a way to control it's volume. No, it is not as loud with the volume tuned down. It is not a problem unless using bluetooth or headset as the speaker is away from the ear. But on headset it is very loud, and extremely loud when you have to turn the phone up to hear a caller. I have a long commute and use a headset a-lot. My work around currently is to rip my headset out of my ear before a call ends to avoid the excruciating pain of having my ear blasted. Car bluetooth does have the same problem. Turn the phone up to hear a call then everyone in the car will get blasted. This is not a problem for those that do not use bluetooth or a headset. But for those that do, it hurts. -
Field disable or non editable -- goods movements
Hi team
your assistace will be highly appreciated.
I´m working with tx CO11N and after completion of the requiere data we click on goods movements button and the next screen is : "Enter production order confirmation: goods movements" and this shows some fields and what I need is to disable some of them or make them non editable : quantity, storage location and movement type.
Is it posible through Spro? if yes could you please tell the where.
I don´t want to create a variant.
thanksI guess Variant is the only option here, atleast thats what my PP consultant had done in my last project.
There didnt seem to be any other alternative then. -
How to disable col for editing in Advtable upon selection of radio btn
Hi,
how can we enable or diable editing of few columns in advance table based on selection of radio button?
i have 2 radio button on a page and one advance table (col1 ,col2,col3,col4,col5)
rad1 rad2 radio button
if user select rad1 then in advance table col1 col2 should be enabled for editing
if user select rad2 then in advance table col3,col4,col5 should be eanbled for editing and other col1 and col2 should be disabled for editing.
how can we accieve this in OAF ?
please guide me.i tried this way:
---Set Action type property for radio to : FirePArtialAction and Event:ReadOnly
In CO PFR:
if("ReadOnly".equals(pageContext.getParameter(EVENT_PARAM))
AM.setReadOnly();
and then i need to set the value of the readonly property of the required columns based on the radio button selected
For the columns i bind the read-only property to transient attribute using SPEL
--Created Transient attr in advance table vo:
Name:ReadOnlytr
Type:Boolean
Updatble:Always
---Preapared SPEL syntax:
${oa.ViewObject1.ReadOnlytr}
---In Advancetable region for items set ReadOnly:
ReadOnly:${oa.ViewObject1.ReadOnlytr}
AM:
public void setReadOnly()
Code:
// now i need to make relevant columns to read only by setting the value of " ReadOnlytr " transient attribute for entire column values .
i am not getting how will i set value of " ReadOnlytr " transient attribute for entire column value .
but after doing this,page is not showing any error but its only refreshing page after PPR is fired ,
Please guide me whether i am following the correct steps. -
Want to ignore exception in a begin-end block
Hi,
For a given plsql block (inside a procedure or function for example) I want to ignore a certain oracle exception. Ignore as in, it should not be raised at all.
What I want to do is something like this -
begin (tell somehow to NOT raise NO Data Found (NDF) )
bq. select <something> \\ into <some Variable> \\ from <somewhere>; \\ if sql%rowcount = 0 \\ then \\ +<take action meant for NDF>;+ \\ end if;
end;
Any Ideas ?
cheers
raghav..Justin,
If you have queries that can properly return 0 or more rows, that is the natural way to implement that. It won't raise an exception if no data is found, it won't raise an exception if multiple rows are found.How can I write a query that would not raise an exception when 0 rows are returned ?
I'm not clear on how a design can "not like the NDF as such". Why would you have to convert that to a business exception and pass it along to the caller? Why wouldn't you just handle the exception in your code if you expect that the NO_DATA_FOUND exception is valid.
The design doesnt like NDF just because the end user has to receive a better response than "No Data was found". We want to include lots of contextual info about the error and the location etc. Even though the NDF is valid, I wont pass it along as such, I would probably convert it to a business exception which would probably say something like "no entities found for end client <ID>" etc..
cheers
raghav..
Maybe you are looking for
-
External USB Drive hangs Disk Utility when trying to Format
Hello Everyone, I have a Maxtor DiamondMax 10 300gig hard drive in an enclosure connected to my iMAC via USB. The drive was previously used on an Win XP pc and worked fine. I want to format it and use it as a backup for my MAC. When I plug in the dri
-
Hi experts, I am not confident about how to write the code for this routine. A Custom key figures is calculatted following way: If field xyz is populated, add subtotal_A and subtotal_b. otherwise add subtotal_A and subtotal_C. I see Resu
-
Hi all, I have a question regarding US Payroll Journal (RPCLJNU0) . By using the standard the UJT1 header form I have created a custom form for my client in pe51 When I execute the form the Payroll area shows up as an astrick ( *) instead of displayi
-
Why is the https protocol used on all pages of arch wiki & forums ?
I don't know if it's true, but I heard that the https protocol requires more server resources than http, maybe because the server has to encrypt the data before sending it to the client. Therefore, as far as I know, https is usually used only on web
-
Maybe it is a basic question... How can I make a view field (that can be Y or N) appear as a checkbox in a JSP page based on BC4J? Thank you